```\nfunction sendEth(address payable [] memory \_to, uint256[] memory \_value) public restrictedToOwner payable returns (bool \_success) {\n    // input validation\n    require(\_to.length == \_value.length);\n    require(\_to.length <= 255);\n\n    // count values for refunding sender\n    uint256 beforeValue = msg.value;\n    uint256 afterValue = 0;\n\n    // loop through to addresses and send value\n    for (uint8 i = 0; i < \_to.length; i++) {\n        afterValue = afterValue.add(\_value[i]);\n        assert(\_to[i].send(\_value[i]));\n    }\n\n    // send back remaining value to sender\n    uint256 remainingValue = beforeValue.sub(afterValue);\n    if (remainingValue > 0) {\n        assert(msg.sender.send(remainingValue));\n    }\n    return true;\n}\n```\n