private function prepareFieldValue(ProductCondition $productCondition) { $value = $productCondition->getValue(); if (is_array($value)) { $value = array_filter($value); } $productCondition->setValue($value); return $this; }