$stock = true; foreach ($this->getProducts() as $product) { if (!$product['stock']) { $stock = false; } } return $stock;