Apparently you can't check for equivalence with NaN