Improve performance

Don't check if the model is in the index when iterating through `_models`. Also with nested virtual collections.