repository = $repository; } public function execute(int $code): bool { return $this->repository->where('code', $code)->exists(); } }