refactor content check into an extractor