Can be simplified to:
```next unless network.has_key?("allocated_by_name")```