Remove unecessary if checks.