Why doesn’t this function work when I know that the IP Address is “true”?

The issue was not persistent between multiple installations because there were multiple themes in use. The themes were creating the title tag in different ways.

Changed plugin based solution to inserting conditional banner content (and later a contextual feedback form) in wp_footer which is working regardless of theme (so far 😉)