Check if given name is present in named_routes

Rather than just checking if a name itself was passed. Otherwise it will
give false positives for engines passing that `use_route` option