title: How do I return 'null' if the array is empty rather than undefined using the .find method with arrow functions?
body: <p>I have a function that takes an array of people objects and returns the first found object from the particular array.  In this case - 'isDoctor'. </p>
  
  <pre><code>const doctors = [ 
        { name: "`Jack Jones`", isDoctor: false},
        { name: "John Smith", isDoctor: true},
        { name: "Louise Young", isDoctor: false},
        { name: "David Boyle", isDoctor: true},
        { name: "Lisa Carr", isDoctor: false },
       ];
  
  
  function findFirstDoctor(people) {
  return people.find(person =&gt; person.isDoctor === true)
  }
  
  </code></pre>
  
  <p>The code I have written correctly returns the below; however in a scenario where there is an empty array or when all 'isDoctor' is false; how would I return 'null' rather than undefined?</p>
  
  <pre><code>Object {
    isDoctor: true,
    name: "John Smith"
  }
  </code></pre>