No, it's not the same. We have ontology-views/routes  (`index` action) that don't have an ontology (thus no `parent`) but are nested under a repository. But I could change that to
```
@repository ||= parent || Repository.find_by_path!(params[:repository_id])
```
which saves a database query in the case where we have an ontology.