Make errors more obvious when developers make mistakes using modal forms.
Add a 'boolean' jinja2 test.

Works like this:

{% if foo is boolean %}
    RAWR
{% endif %}