simplify checkSymbolUsage function