private function checkCookieAuth()
    {
        if (strlen(trim($this->getUsername())) == 0) {
            $this->objConnector->cleanupSession();
            $this->objConnector->refreshSession();
            return false;
        }
        return true;
    }
private function checkCookieAuth()
    {
        if (strlen(trim($this->getUsername())) == 0) {
            $this->objConnector->cleanupSession();
            $this->objConnector->refreshSession();
            return false;
        }
        return true;
    }
private function checkCookieAuth ( ) { if ( strlen ( trim ( $ this -> getUsername ( ) ) ) == 0 ) { $ this -> objConnector -> cleanupSession ( ) ; $ this -> objConnector -> refreshSession ( ) ; return false ; } return true ; }
Try to read the username from the API - if successful, it means we have a valid cookie, and we don't need to auth

@return bool
@throws UnexpectedResponseCodeException
Try to read the username from the API - if successful it means we have a valid cookie and we don t need to auth