if statements simplified