Clarify what is done in the number checker method

The method should not be vague as it could be gathered that it is
checking whether the string can be parsed as an integer instead of
a double. Modifications to this implementation should not be made
either as they could end up breaking other parts of the app.