結果 : javascript check if object is array and not empty