src/vs/workbench/contrib/terminal/common/terminalEnvironment.ts/_mergeEnvironmentValue
function _mergeEnvironmentValue(env: ITerminalEnvironment, key: string, value: string | null): void {
	if (typeof value === 'string') {
		env[key] = value;
	} else {
		delete env[key];
	}
}