Transformer/ArrayFilterTransformer.php
public function transform($value, array $options = [])
    {
        if (!(\is_array($value) || $value instanceof \Iterable)) {
            throw new \UnexpectedValueException('Given value is not iterable');
        }

        $result = [];

        foreach ($value as $key => $item) {
            if ($this->checkCondition($item, $options['condition'])) {
                $result[$key] = $item;
            }
        }

        return $result;
    }
public function transform($value, array $options = [])
    {
        if (!(\is_array($value) || $value instanceof \Iterable)) {
            throw new \UnexpectedValueException('Given value is not iterable');
        }

        $result = [];

        foreach ($value as $key => $item) {
            if ($this->checkCondition($item, $options['condition'])) {
                $result[$key] = $item;
            }
        }

        return $result;
    }
{@inheritdoc}