check for existence of variable jinja2 code example
Example: Jinja if with true value
{% if bCat2 == true %}
<div>True</div>
{% else %}
<div>False</div>
{% endif %}
{% if bCat2 == true %}
<div>True</div>
{% else %}
<div>False</div>
{% endif %}