With Ansible 12 conditionals have to be explicit booleans.
Syntax like when: my_list (to check whether the list is not empty) will no longer work.
This issue serves as a reminder to this new behavior. This should be addressed, ideally before the release of Ansible 12 (ansible-core 2.19) if possible.
I don't know how often this implicit style occurs in the collection but I would be surprised if it wasn't used at all.