isNanOrInfinite