isNaN to undefined