Double.isNaN is a method call so take advantage of the fact that anything compared to NaN is false