Check If Array Has Nan Values Python W3schools