I believe the fact that a single `<br>` counts as empty would make it more complicated than that. You'd end up counting the number of children, or something that's not necessarily simpler.