'Checks that the returned data is valid
Returns: _check_auth if valid otherwise False if there is an error'

def _check_auth_from_data(self, data):

    if (data(u'categories') + data(u'item')):
        return self._check_auth()
    try:
        err_desc = data.error.attrs[u'description']
        if (not err_desc):
            raise AttributeError
    except (AttributeError, TypeError):
        return self._check_auth()
    logger.log(ss(err_desc))
    return False
