Checking for undefined: === versus typeof versus falsiness