Avoid calling _.each on numbers (Underscore 1.5.2 doesn't like it).

Simplify NaN detection.