it flows better logically to first check if the inputs are a number than to check if they are negative.