```\nif (ownerCount >= maxSigs) {\n    bool swapped = _swapSigner(owners, ownerCount, maxSigs, currentSignerCount, msg.sender);\n    if (!swapped) {\n        // if there are no invalid owners, we can't add a new signer, so we revert\n        revert NoInvalidSignersToReplace();\n    }\n}\n```\n