public static function set(array $set, $path, $value = null) {
        if (is_array($path)) {
            foreach ($path as $key => $value) {
                $set = static::insert($set, $key, $value);
            }
        } else {
            $set = static::insert($set, $path, $value);
        }

        return $set;
    }