Thank you very much for the quick suggestions. I've been assembling the code by just copying code examples. I understand what they do, but some stuff is just omitted or requires quite the amount of time to read.
This is the reason I've not (really) advertised my Age Verification addon here since I bet that there is some stuff that is edgy.
Again, very appreciated!