public function match(
        ModelInterface $model = null,
        PropertyValueBag $input = null,
        PropertyInterface $property = null,
        LegendInterface $legend = null
    ) {
        if ($input && $input->hasPropertyValue($this->propertyName)) {
            $values = $input->getPropertyValue($this->propertyName);
        } elseif ($model) {
            $values = $model->getProperty($this->propertyName);
        } else {
            return false;
        }

        if (!$values || !is_array($values)) {
            return false;
        }

        foreach ($values as $value) {
            if (in_array($value, $this->propertyValue, $this->strict)) {
                return true;
            }
        }

        return false;
    }
public function match(
        ModelInterface $model = null,
        PropertyValueBag $input = null,
        PropertyInterface $property = null,
        LegendInterface $legend = null
    ) {
        if ($input && $input->hasPropertyValue($this->propertyName)) {
            $values = $input->getPropertyValue($this->propertyName);
        } elseif ($model) {
            $values = $model->getProperty($this->propertyName);
        } else {
            return false;
        }

        if (!$values || !is_array($values)) {
            return false;
        }

        foreach ($values as $value) {
            if (in_array($value, $this->propertyValue, $this->strict)) {
                return true;
            }
        }

        return false;
    }
{@inheritdoc}