Generally we don't coerce types to boolean.  Should this be `if (!defined(headerString))`?