better assert check for numbers/NaN

shouldn't it be !isNaN?