Adding convenience method to test if object exists in container.