title: How can I check if there are any more JSON files remaining in a directory in Python?
body: <p>I'm iterating through a directory containing a number of JSON files and sub-directories and .txt files. I need to do this until there are no more JSON files remaining in this root directory. </p>
  
  <p>How do I express this condition?</p>