Python Check If Array Contains An Element Cannot Be