結果 : bash check if last element in array