public function delete($id) { try { $client = $this->getClient($id); if ($client['success']) { return ["success" => $this->repository->delete($id)]; } return $client; } catch (\Exception $e) { return ['success' => false, 'message' => "Could not delete the Client {$id}"]; } }