```\nfunction deleteExcluded(uint index) internal {\n    require(index < excludedFromRewards.length, "Index is greater than array length");\n    excludedFromRewards[index] = excludedFromRewards[excludedFromRewards.length - 1];\n    excludedFromRewards.pop();\n}\n```\n