if not empty variable twig code example Example: twig is not empty {% if not (varname is empty) %} That's not empty. {% endif %}