How to identify whether the object is already present in the object repository or not?

How to identify whether the object is already present in the object repository or not while adding new object?