/** * @return bool */ protected function processBulkDelete() { if (is_array($this->boxes) && !empty($this->boxes)) { foreach ($this->boxes as $iIdNowBlockReinsurance) { $oNowBlockReinsurance = new NowBlockReinsurance((int) $iIdNowBlockReinsurance); if (!$oNowBlockReinsurance->deleteImage()) { $this->errors[] = Tools::displayError('An error occurred while deleting image of the object (NowBlockReinsurance).') . ' <b>' . $this->table . '</b> '; return false; } } } return parent::processBulkDelete(); }