Simplified check for numbers