Add isInteger() method