could you put the `is_integer` test first as that is more likely to be true, allowing a faster short circuit.