title: Best way to handle Undefined array key in PHP 8.0
body: <p>I upgraded to PHP 8.0 a few months ago and like a lot of developers I'm having trouble with this notice turned into a warning. I don't understand the proper way to deal with this so I'd like to know how to fix this without bloating my code.</p>
  <p>Previously I would do this</p>
  <pre><code>public function myFunction($options = []){
  
      //we know $options is an array, so let's check if the key is there and get its value at the same time
      if($run = $options['run']){ 
              
          //do something with $run
              
      }
  }
  </code></pre>
  <p>$options is initialized as an array and if key 'run' is defined I get its value ready to be used. What it's being suggested I handle with this simple piece of code now is...</p>
  <pre><code>public function myFunction($options = false){
  
      if(isset($options['run']){
  
          $run = $options['run'];
              
          //do something with $run
              
      }
  }
  </code></pre>
  <p>It seems to me like this is adding an extra unneeded step: is it really how it should be handled?</p>
  <p>Thanks in advance</p>