DOM Level 1 Core
boolean hasChildNodes( );
true if this node has one or more children; false if it has none.
Node.childNodes