A simple help in JS is to memorize which things are “falsy”: http://simon.incutio.com/slides/2006/etech/javascript/js-reintroduction-notes.html#othertypes
Really that whole article is reqd. reading.