Remove superfluous isNaN checks