Hi Esequiel,
Checking if an attribute is true can be done by:
[attribute] or [attribute = true()], see e.g. XPath True | Mendix Documentation
Hope this helps!