Fixed issue:

isNan() needs to check that the input is only "NaN" and not something like "ThisIsNan"