It must be
```ruby
if attributes.empty? && attribute_hashes.size == 1
```