結果 : javascript array get first element if exists