Augmented contains() function