def _is_toolchain_for(cls, name):
    """see if this class can provide support for toolchain named name"""
    if name:
        if hasattr(cls, 'NAME') and name == cls.NAME:
            return True
        else:
            return False
    else:
        return hasattr(cls, 'NAME') and cls.NAME
