public function hasUsers() { $rows = $this->getRepository()->hasUsers(); return $rows ? (int) $rows['count'] : 0; }