結果 : python array get first element if not empty