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