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

Given an array of integers arr, return true if the number of occurrences of each value in the array is unique or false otherwise.
 
Please complete the following python code precisely:
```python
class Solution:
    def uniqueOccurrences(self, arr: List[int]) -> bool:
```