Added protection agains inserting an existing element in a collection