An index of current resources [by path] is already maintained on `this.index`, so something like `return resource.$path in this.index;` is probably much faster, especially for larger collections.