add twig function "path_exists"