Fixing wrong twig comparison