Fix rubocop warning 'DoubleNegation'