Handle if extension is already loaded when rendering multiple views

When rendering multiple twig file in the same "controller"  a LogicException is throw , you need to test if the extension il already loaded before add it