public function whenLogged($callback)
    {
        $this->loggedInCallbacks[] = $callback;

        if ($this->isLogged()) {
            fire_callbacks($this->loggedInCallbacks, $this);
        }
    }