checkRecaptchaConfig
Checks config the way validateRecaptcha, loadRecaptchaScript and recaptchaWidget do, and returns whether reCAPTCHA is fully configured: enabled, with both keys present and non-blank.
When it is enabled with a key missing or blank, the helpers let every request through, and this logs the warning they log the first time they see that state. Each call logs it, and the helpers then do not repeat it. The helpers first read the config when a page renders the widget or a form is submitted, so call this when the application starts to have the warning appear in its startup log, or to refuse to start.
Return
true if reCAPTCHA is enabled with both keys, false if it is disabled or misconfigured.
Parameters
config
the RecaptchaConfig to check.