Currently, `contains` method utilizes `get` method and checks if the value is `Some`. Let's optimize this method to make it faster than `get`