what is the equivalent to isNaN in ruby?