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

You are given an integer array nums consisting of 2 * n integers.
You need to divide nums into n pairs such that:

Each element belongs to exactly one pair.
The elements present in a pair are equal.

Return true if nums can be divided into n pairs, otherwise return false.
 
Please complete the following python code precisely:
```python
class Solution:
    def divideArray(self, nums: List[int]) -> bool:
```