Router class fix

* Fixed for php 5.3