Merging collapsible if statements increases the code's readability.
if
if (x != undefined) { if (x === 2) { // ... } }
if (x != undefined && x === 2) { // ... }