Is there a way to check if a constant exists?

I didn’t found a hint in the docs or the forum. Is there a function to check if a constant (with a known name) exists?

Constants are resolved at compile time, which means if the constant name doesn’t exist you’ll get a compile error saying so.

Search the constant ?