protected function normalizeValue($value, $original = false)
    {
        if (is_array($value)) {
            return $value;
        }

        if ($value instanceof Arrayable) {
            return $value->toArray();
        }

        return [ $value => [] ];
    }
protected function normalizeValue($value, $original = false)
    {
        if (is_array($value)) {
            return $value;
        }

        if ($value instanceof Arrayable) {
            return $value->toArray();
        }

        return [ $value => [] ];
    }
protected function normalizeValue ( $ value , $ original = false ) { if ( is_array ( $ value ) ) { return $ value ; } if ( $ value instanceof Arrayable ) { return $ value -> toArray ( ) ; } return [ $ value => [ ] ] ; }
Normalizes a value to make sure it can be processed uniformly.

@param mixed $value
@param bool  $original
@return mixed
Normalizes a value to make sure it can be processed uniformly .