Possibly, and it might be a nice addition, but you run the risk that your model and your dom could get out of sync if you rely on querying the dom to see if a state exists and then toggling it.

Do you have an example before/after example of how you would expect the usage to change?