Como verificar se uma tag tem algum aperto

tag.hasChildNodes()
Helpless Hippopotamus