added new method `isSameMembersDefinedSame`