check if there are child nodes