public function isLoggedIn()
    {
        if (null === $this->loggedIn) {
            $this->user = $this->loadUser();
            $this->loggedIn = $this->user instanceof UserInterface;
        }

        return $this->loggedIn;
    }
public function isLoggedIn()
    {
        if (null === $this->loggedIn) {
            $this->user = $this->loadUser();
            $this->loggedIn = $this->user instanceof UserInterface;
        }

        return $this->loggedIn;
    }
public function isLoggedIn ( ) { if ( null === $ this -> loggedIn ) { $ this -> user = $ this -> loadUser ( ) ; $ this -> loggedIn = $ this -> user instanceof UserInterface ; } return $ this -> loggedIn ; }
Check if user is logged in

@return bool
Check if user is logged in