use a guard instead of an if block for chef style