> I think @tonio wanted we do this for all our components few times ago, if I remenber correctly.

Right. No need for a class & semantically more correct.
Testing for the attribute existence make it obviously well scoped.