Slightly faster version of 'is_NaN'