It seems, for life to exist on a planet (as human beings define life) for a sufficient period of time to have a somewhat advanced civilization, a few factors are needed.
3 of them
1. A sun with the right characteristics
2. A Goldilocks zone with planets inside it
3. A gas giant, to exert massive gravitational pull over the millions off projectiles that might wipe out life on the GL planets but instead are diverted by the Gas Giant.