private function isValidSetter($setter)
    {
        return (\is_array($setter)
            && (2 === \count($setter))
            && isset($setter['to_field'])
            && (isset($setter['from_field']) || isset($setter['value'])));
    }