結果 : if array is undefined javascript