Is there a better method to check for an integer?