I'd just make this a computed property, like

```python
@property
def routing_needed(self):
    return self.inputs_to_layers is None
```

It's fast enough and only really relevant at compile time anyway.