Solve the programming task below in a Python markdown code block.
Write a function that merges two sorted arrays into a single one. The arrays only contain integers. Also, the final outcome must be sorted and not have any duplicate.
Also feel free to reuse/extend the following starter code:
```python
def merge_arrays(first, second):
```