Implemented a much better isEdited test for relationships