polyfill isNaN