結果 : typescript if variable is not undefined