public function numChildren() { $conn = $this->source->getLdap(); if ($conn) { return $conn->countChildren($this->node->getCurrentDN()); } return 0; }