Better save `@hashed_entities[node]` in a local variable to access the hash only once.
```
if entities = @hashed_entities[node]
  entities.each(&block)
end
```
or use `try`
```@hashed_entities[node].try :each, &block```