Add is_ajax() method to Router class