Should rest of the code be inside this if block as well ? If we do not have any communities, should not we just quit ?