I think the variable should be renamed.  It's not a bool and the 'is' name implies bool.  How about enclosingSymbol or something like that.