added check to remove the "See also", "References", and "External links" sections