Python Check If Array Contains Nan