add twig extension to check if menu exists