```ruby
(hash[TAG] || {}).each do |tag, content|
```