There is no guarantee model has a variable named `tocNodes` (I don't think an `atc` collection has one). Also, I don't know how safe it is to assume the 1st entry in tocNodes is a file. `tocNodes` was written to be an internally-used field for listening to changes and updating the navigation html.