結果 : if array not empty javascript