Having that HIDE or display none is not acceptable. You really need to have it 100% absolutely gone when it's not opted in to. Wrap the whole code block in a check for if the opt-in box is checked, and have it ONLY show when yes. That's all you have to do here.