$value) { if (!isset($params[$key])) { $params[$key] = $value; } } return $params; } public static function remove(array $params, array $removeKeys): array { foreach ($removeKeys as $key) { if (isset($params[$key])) { unset($params[$key]); } } return $params; } }