Rubcop fix: 

Favor unless (or control flow or) over if for negative conditions.