[feature/twig] Fixing IF .blah correctly

PHPBB3-11598