How do I find if a variable is defined when I know the corresponding symbol, but not the name?

if you need this you’re doing it wrong, that said

julia> isdefined(Main, :a)
false

julia> a = 3
3

julia> isdefined(Main, :a)
true