def has_enabled_clear_method(store):
    """Returns True iff obj has a clear method that is enabled (i.e. not disabled)"""
    return hasattr(store, 'clear') and (  # has a clear method...
        not hasattr(store.clear, 'disabled')  # that doesn't have a disabled attribute
        or not store.clear.disabled
    )