PHP : Check if array has duplicate values