PHP notice and warning about array_unique()