hasChildren tree API