`typeof n !== 'number'` would account for more cases (what if I pass an array as `num`?)