Check Nan Values In Numpy Array Reshape