The jQuery Core Style Guidelines suggest two different ways to check whether a variable is defined.
typeof variable === "undefined&
Who is interested in the performance gain of variable === undefined, may take a look here, but it seems to be a chrome optimization only.
variable === undefined