[SOLVED] Help understanding isset

DisqusShortcode is a pre-defined string field on the SiteInfo struct. Therefore, it’s always defined. It’s default value is "".

If it were a pointer to a string (*string), you could use isset as you’re expected (since the default value would be nil), but it’s not a pointer.

I agree that it’s not intuitive, but that’s how it works at the moment.