I could use `hasattr(estimator, "classes_")` instead (any classifier without this attribute should be updated).