Move isNan() from Geometry.h to Helpers.h