Fixed array_diff to avoid array to string error