return empty array if router is empty

to prevent generating links without any route attached