ah, so if I understand it correctly then I would:
```ruby
case rule_clauses.size
when 0
  # ignore
when 1
  rule_clauses.first
when 2
  { '$and' => rule_clauses }
else
  raise
end
```