def METHOD_NAME(self):
    provider = self.settings.get('provider')
    if provider == CaptchaProvider.recaptcha:
        return bool(self.settings.get('recaptcha_site_key') and self.settings.get('recaptcha_secret_key'))
    elif provider == CaptchaProvider.hcaptcha:
        return bool(self.settings.get('hcaptcha_site_key') and self.settings.get('hcaptcha_secret_key'))
    return False