'Returns ``True`` if new messages from the socket are available, else
``False``.'

def has_messages(self):

    if self._message_queue:
        return True
    self._get_new_messages()
    if self._message_queue:
        return True
    return False
