why not `if (opcode < 0 || opcode >= opcodeTable.length) {`

And remove the TODO