use shim for Number.isNaN