Quickest programmatic way to tell whether course is empty?

pgo586
Community Contributor

What is the quickest way (via API) to tell whether any content has been created in a given course? (meaning *any* type, and not a particular type of content). I am aware of the 'unused' account report type, and could probably use this lacking a better alternative. I'd consider acceptable a solution that requires 1 API request per course, but not more. It would be great to hear if anybody has come up with a different answer for this question.