# Does anyone know how I could check if a symbol exists in the current scope? The # usecase is because I'm generating type definitions (as well as some additional # boilerplate), and want to allow the user to use their own types, but with my # macro signature `macro packet(protocolVersion: uint, packetName: untyped, body: # untyped = nil)`, `body`'s `treeRepr` is this:```nim # StmtList # Call # Ident "field1" # StmtList # Ident "uint" # Call # Ident "field2" # StmtList # BracketExpr # Ident "VarNum" # Ident "int32" So I want to be able to check if `VarNum[int32]` is a valid type, for example