結果 : how to check array is not empty in python