correctly check if config value isset