Merges two nested if statements into one, provided there are no elsif or else branches in the first if statement.