public function removeData()
    {
        $session = $this->getSession();

        /** @noinspection PhpUndefinedFieldInspection */
        if ($session->data !== null) {
            unset($session->data);

            return true;
        }

        return false;
    }