So I generally don't do instanceof checks because it doesn't work across contexts ex if they use a different version or module for key grip. It'll work for now, but someone might complain about it eventually. That's why I did app.keygrip= and not bother checkjng