Getting rid of Style/IfUnlessModifier rubocop