Simplified isNumber function
Renamed function