Standardize is_array check in Database::upsert