結果 : get first element of list if not empty python