結果 : java get first element of array if exists