public function isLoggedIn()
    {
        $loggedIn = $this->di->get("session")->has("user");
        if (!$loggedIn) {
            $this->di->get("response")->redirect("user/login");
            return false;
        }
        return true;
    }