Changed sectionExists to handle different sections