public function hasChildren($path) { $iterator = $this->getChildIterator($this->get($path)); $iterator->rewind(); return $iterator->valid(); }