minor fix in if statement to check for np.all to be not equal to true