empty
The empty
test checks if a variable is empty. A variable is empty if it is null, an empty string, an
empty collection, or an empty map.
{% if user.email is empty %}
...
{% endif %}
empty
The empty
test checks if a variable is empty. A variable is empty if it is null, an empty string, an
empty collection, or an empty map.
{% if user.email is empty %}
...
{% endif %}