The jQuery Core Style Guidelines suggest two different ways to check whether a variable is defined.
typeof variable === "undefined&
typeof a === 'undefined' is faster then a === 'undefined' by about 2 times on node v6.9.1.
typeof a === 'undefined'
a === 'undefined'