Given is_default_route is initialised to true, won't this end up potentially returning an invalid result.