I suppose this assumes a `root` property may not ever exist in `config`'s prototype chain, which is a fair assumption. However, I believe it's the wrong kind of test in this case.
    
    config.hasOwnProperty("root");

seems more correct. Then again, since `root` is expected to be a string of length greater than one:

    if (config.root) { ... }

suffices.