Simplified is_integral implementation.