fix check if pagerfanta twig helper was loaded before