Check if route and hops are not null