Update Router.php

Fixing index finding function.