make [] method in router more readable
Merge pull request #10226 from buddhamagnet/master

Make [] method more readable