The areAddressArraysEqual() function is used to check if array1 and array2 contain the same elements. It does so by checking that each element in array1 exists in array2, and vice versa:
SecurityCouncilMgmtUpgradeLib.sol#L61-L85
However, this method isnt foolproof when both array1 and array2 contain duplicate elements. For example:
Even though both arrays are not equal, areAddressArraysEqual() will return true as they have the same length and all elements in one array exist in the other.
Consider checking that both arrays do not contain duplicate elements.
