It may sound a bit overkill but I'm starting to wonder if it wouldn't be simpler and more expressive to have a helper function "isDefined" or something like that. I don't like compare to undefined either, but Boolean looks a bit contrived too.