modify is_number?() method to make it more readable