You're absolutely correct. Wasn't paying attention to the `if (childIndex)` line above this and thought that routeIndex was the important thing. Will update with moar better code.