The deprecation fix (deb1d3e) uses <variable> | bool to check whether a list was non-empty or a variable was defined. However, the bool filter just tries to cast its input to a boolean and string values become false.
This PR fixes the intended behaviour by checking if variables are defined and lists are non-empty.
The deprecation fix (deb1d3e) uses
<variable> | bool
to check whether a list was non-empty or a variable was defined. However, thebool
filter just tries to cast its input to a boolean and string values becomefalse
.This PR fixes the intended behaviour by checking if variables are defined and lists are non-empty.