added suggested speed boost for isNumber
(cherry picked from commit 30858c50a809fda225a1b48043b2ed0576e50166)