Combine obviously combinable if statements