Change empty testng on arrays to np.all.