private function prepareFieldValue(ProductCondition $productCondition)
    {
        $value = $productCondition->getValue();

        if (is_array($value)) {
            $value = array_filter($value);
        }

        $productCondition->setValue($value);

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

        if (is_array($value)) {
            $value = array_filter($value);
        }

        $productCondition->setValue($value);

        return $this;
    }
private function prepareFieldValue ( ProductCondition $ productCondition ) { $ value = $ productCondition -> getValue ( ) ; if ( is_array ( $ value ) ) { $ value = array_filter ( $ value ) ; } $ productCondition -> setValue ( $ value ) ; return $ this ; }
Update the condition value to ignore empty array items.

@param ProductCondition $productCondition Product condition.

@return $this
Update the condition value to ignore empty array items .