```
class Solution:
# @param {integer[]} nums
# @return {boolean}
def containsDuplicate(self, nums):
if not nums:
return False
if len(nums) == 1:
return False
nums_set = set(nums)
if len(nums_set) == len(nums):
return False
return True
```