Merge if statements