結果 : typescript if array is not empty