Added methods to check if a value exists in the list