Python Check If Array Has Element