If you do as num, you won't need any code to check that it's actually a number.