`blank?` is actually an Active Support extension, and Haml should not depend on that. So it should probably be:

```ruby
if attributes == "" || attributes.nil? && attribute_hashes.size == 1
```