Check for defined in case two on page

Check for defined in case two captchas are on the same page to prevent
and error