```python
def test_duplicate(arraynums):
    """
    Checks if a list of integers contains any duplicate elements.
    """
    # A set can only contain unique elements.
    # If the length of the set is less than the length of the original list,
    # it means some elements were removed, so there must have been duplicates.
    return len(arraynums) > len(set(arraynums))

```