Python Check If Array Contains An Element