/** * @param Product $product * * @return bool */ public function remove(Product $product) { if (null == $product->getId()) { throw new \ErrorException('Can not remove a non existent Product !'); } else { $request = new DeleteJson($this->removeUrl($product)); } $deleted = $request->makeRequest(); return $deleted; }