Check If Array Value Is Empty In Python