ReallyNaN function added for safer isNaN checking