Merged if statements