Skip setting the value for key if the existing relationships are equal.