How to check name of a tag
Your code returns an TagModel and saves it as "tag". You can now get all model properties like this:

{{ tag.property_name }}


In your case it would look like this:

{% if tag.name == 'Flower' %}
    Do stuff
{% endif %}