Replaced array_diff_assoc as it chokes on objects