private function getOne($id) { if (is_numeric($id)) { $id = (int) $id; } $category = $this->collection->get($id); return $category; }