simplify redundant test for NaN [skip ci]