'Return True when there is no session_key and the session is empty.'

def is_empty(self):

    try:
        return ((not bool(self._session_key)) and (not self._session_cache))
    except AttributeError:
        return True
