:lipstick: switch case to if when using predicates