Compact integer checks

Here it goes. Don't know if this more readable or simple)