make sure empty arrays don't show in url in router