Use global.isNaN instead of Number.isNaN