Collapsing if statements.