public function destroy($id) { if ($this->checkProjectOwner($id) == false) { return ['error' => 'Access Forbidden']; } return $this->projectRepository->delete($id); }