/** * Resolve property has-children with given node. * * @param Row $row * * @return bool */ private function resolveHasChildren(Row $row) { $queryBuilder = new QueryBuilder($this->qomFactory); $queryBuilder->select('node', 'jcr:uuid', 'uuid')->from($this->qomFactory->selector('node', 'nt:unstructured'))->where($this->qomFactory->childNode('node', $row->getPath()))->setMaxResults(1); $result = $queryBuilder->execute(); return count(iterator_to_array($result->getRows())) > 0; }