use a regular expression to check for empty config