Python Check If Array Contains Element