Replace "if"s with a guard clause