Handled flatten_params_array for empty arrays