protected function initDataPacket($filter, $key)
    {
        if (!array_key_exists($key, $_POST)) {
            $this->errorMessage = $this->config->messages[$key];
            $this->ajax_response_handler();
        }
        $this->dataPacket[$key] = $filter($_POST[$key]);
    }