Fix isSymbol method