Check if a number is a natural number