{% if field.data and field.data.get_slides_length() %}
EDIT {% elif field.data %}
...
EDIT {% else %}
...
{% endif %}