Function isNumber

Returns true if x is a number, returns false if x is NaN or other value.