check($ticket, $rand); if (!$result) { throw new BadRequestException('captcha.invalid_code'); } } }