adding is_route() helper