Python Check If Array Has Value