Can OctoPrint settings ever be empty? (Regarding global_get)

In this case, I'm checking ["serial","port"], but in general I'd like to always handle the empty case, if any, when using global_get() to get OctoPrint settings.

What happens if I try to get an OctoPrint setting using correct path, but nothing is set yet? Is this even possible?

I've checked here but it's not documented (unless i've missed it):

My assumption would be that it returns a NoneType or raises an error. Typically when the docs don't give you the answer I go to the source...this is what global_get forwards your request to.

Thanks, will stick with checking it's not None then

I'm not one hundred percent sure, because it looks like it raises an error, so you'd have to detect in try/except block for the error raised.