結果 : check if not empty array javascript