In Javascript (I don't know about other dynamic languages)
if (x)
and
if (x != 0)
mean different things. I will use the former when the I expect x to hold a reference to an object or string that should not be zero length. Its a well known enough idiom.