Solving dependencie bug with array_unique function