missing typeof and { } -  + use this for undefined check - if (typeof something === "undefined")