This was done just to protect against non-number, mainly undefined, values. And since I also modified a NaN and undefined check in gaia as part of jshinting with a value > -1 check that made sure those did not match, I just used the same thing here.

However, I'll change it to just explicitly only skip the work for undefined, and leave the other cases as explicit failures, to be be tracked down and fixed if they occur.