check if globals or forms exists

Is it possible to have a feature in the method editor, that checks if forms and/or globals are really existing?

for example, when you hit the verify button!