Un-deleted hasnumeric/getnumeric

Accidentally deleted hasNumeric() and getNumeric() functions, re-adding
them now.