options) ? $session->options : []; $adapter = new Qs_Captcha_Image($options); $newId = $adapter->generate(); $session->unsetAll(); $response = [ 'isValid' => true, 'oldId' => $id, 'newId' => $newId, ]; $this->_displayJson($response); } }