Added check for empty url's and sample config