Collapse if expressions to one liners