def object_list_check_any_has_attribute(object_list,attr_name):
    """
    check if any object in the list has the attribute.
    """
    unique = False
    for obj in object_list:
        if hasattr(obj,attr_name):
            unique = True
            break
        else:
            pass
    return unique