Remove array duplicates by key