twig check if sting is empty or blanck code example Example: twig is empty {% if varname is empty %} That's empty. {% endif %}