結果 : javascript check if array undefined or empty