Made hasSymbol const.