To perform a conditional test in Volt the documentation describes using the is keyword which is equal to using ==, however the documentation also suggests that is not is equal to != however I've just experienced some unexpected behaviour:
{% if element.getLabel() is not empty %}
Throws the following notice:
Notice: Undefined variable: empty
But using
{% if !element.getLabel() is empty %}
Produces the correct behaviour. Is this a bug or is Volt just not intended to be used this way?