Refactored method "isUInteger:"