add twig type completion inside if and set