If a condition is a boolean expression can check it directly.
It’s also possible to invert the check using the not
keyword
{% if TestValue|exists %}Value Exists{% else %}Value Doesn't Exist{% endif %}
{% if not TestValue|exists %}Value Doesn't Exist{% else %}Value Exists{% endif %}