public static function translateArray($array, $prefix, $function, $close = "__") {
        $result = [];
        foreach ($array as $key => $item) {
            if (gettype($item) != "Closure Object") {
                if (is_array($item)) {
                    $result[$key] = \Sirgrimorum\CrudGenerator\CrudGenerator::translateArray($array, $prefix, $function, $close);
                } elseif (is_string($item)) {
                    $item = \Sirgrimorum\CrudGenerator\CrudGenerator::translateString($item, $prefix, $function, $close);
                    $result[$key] = $item;
                } else {
                    $result[$key] = $item;
                }
            } else {
                $result[$key] = $item;
            }
        }
        return $result;
    }