A geometric approach to the existence of sets of periodic orbits