Using `isNaN()` with `Number()` is more foolproof, to avoid attempting casting strings with periods.