Check if config keys exist in the config before returning a value