I don't personally think that the existence of an HOA implies a failed city. But perhaps the utility of an HOA is even higher in such a city. I also will grant that bad HOAs can and do exist.
It wasn’t the existence of an HOA. It was the HOA feeling they needed a guard gate to protect the community.