why are you testing against a variable that has been undefined rather than just using `undefined` or `!`?