I'm personally in favor of this patch. Sure, it's less readable but it's used only here and clearly described so if anyone reads the support comment it should become clear to them as well. And no one will use this code directly, only via `isNumeric` so there's no exposition of the complexity outside of this function.

Let's see what others say, though.
cc @scottgonzalez @dmethvin