結果 : check if array only contains one value python