Added isset() checks to $config vars.