add hasChildElemets method