isNaN should be on Number, not Object.