protected static function flatArray(array &$result, array $array, $connector = '.', $prefix = null)
    {
        foreach ($array as $key => $value) {
            if (is_array($value)) {
                static::flatArray($result, $value, $connector, $prefix.$key.$connector);
                continue;
            }

            $result[$prefix.$key] = $value;
        }
    }