You should consider throwing an exception instead of returning a boolean as a success indicator (e.g. DuplicateEntryException). It sounds like when the value is already in the bag, the method cannot...