def METHOD_NAME(self, mods):
    if self.hist_plot_data is None:
        return False
    for mod in mods:
        if mod["action"] != "setitem":
            return False
        if mod["path"] == [self.args.xs, 1]:
            if mod["key"] == self.selected_index:
                return False
        elif mod["path"][:2] == [self.args.histograms_counts, 1]:
            if len(mod["path"]) > 2:
                index = mod["path"][2]
            else:
                index = mod["key"]
            if index == self.selected_index:
                return False
        else:
            return False
    return True