collection->findOne(['name' => $userName]); return $this->entityConverter->toEntity($arrayEntity); } public function hasAnyUsers() { return (bool) $this->collection->findOne(); } }