Issue #1666632 by sun, chx: Add Config::isNew() to allow code to determine whether a config object already exists.