This is used by settings, so must be bulletproof.  Please wrap either this funciton, or it's call above, in a `try..catch` block.