If predict_proba() raised an AttributeError, hasattr(estimator, "predict_proba") would return False.