hasChildNodes

Returns whether node has children.

MDN Reference