extracting isInt/isFloat logic in functions