There were two things addressed. The right to bear arms and a well regulated militia. It's not an if/then scenario. The ammendment does not guarantee the right to bear arms for the singular purpose of maintaining a militia. It's not a "clause".