splitted if statements