Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.
 
Please complete the following python code precisely:
```python
class Solution:
    def containsDuplicate(self, nums: List[int]) -> bool:
```