Printer.configfile object

Is there anyway I can access the configuration of the neopixel led from a macro?
E.g. I have the standard neopixel section
[neopixel myled]
pin: …

How do I address it via the printer object? I can use for example printer.configfile.config.extruder.min_extrude_temp to check the temp in a macro, but not sure how do I check if the neopixel with given name is defined. Thanks

I have no direct answer but you can check with Example: Search Printer Objects

Thanks, I will try that