add isNaN(null) and isNaN(undefined)