public function cleanIdealo() { $communication = new Communication($this->login); $page = 1; $list = array(); do { $article = $communication->getOfferList($page); if (count($article) > 0) { foreach ($article as $art) { $list[] = (string) $art->sku[0]; } if ($this->login['status'] != 'False') { $page++; } } } while (count($article) > 0); if (count($list) > 0) { $this->deleteProduct($list); } }