def METHOD_NAME(tree):
    if self.conditionally_hidden:
        scope = tree.scope
        name = tree.children[name_string_idx].value
        realpath = self.context.realpath(scope, name)
        self.context.unregister_object(realpath)
    return go_on