def METHOD_NAME(env: "Environment", value: str) -> bool:
    """Check if a filter exists by name. Useful if a filter may be
    optionally available.
    .. code-block:: jinja
        {% if 'markdown' is filter %}
            {{ value | markdown }}
        {% else %}
            {{ value }}
        {% endif %}
    .. versionadded:: 3.0
    """
    return value in env.filters