Add isInteger method