結果 : check if data is empty javascript