Judging by the PR announcer, it uses a comms_allowed variable which I don't see used here. I either recommend you use it or you refactor the code so you don't have to use it but you could instead use a checkKey() and maybe check if the key is null.