[Defender Pro] Refactor code or hide error message

Not a question I guess…
See attached image, either suppress the error message or refactor the code so no will be given :slight_smile: