empty
ΒΆ
empty
checks if a variable is empty:
{# evaluates to true if the foo variable is null, false, an empty array, or the empty string #}
{% if foo is empty %}
...
{% endif %}
empty
ΒΆempty
checks if a variable is empty:
{# evaluates to true if the foo variable is null, false, an empty array, or the empty string #}
{% if foo is empty %}
...
{% endif %}