Fixed execution order
Faster array_unique