Five factors you should consider before buying one of these doughnut shops.