{% if item is defined and item.user is defined and item.user is not null %} {{ value }} {% elseif user is defined and user is not null %} {{ user }} {% else %} {{ value }} {% endif %}