Fix issue #3 - Use of Number.isNaN()