Write a simple function to check for duplicates in an array.
Implement contains_duplicate(nums) to return True if any value appears more than once, and False otherwise. The input is a list of integers, and an empty list should return False.
def contains_duplicate(nums):
def contains_duplicate(nums):