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