title: ErrorException' with message 'Undefined offset: 1
body: <p>I have an array that have an index <code>0</code> and index <code>1</code> and in some cases the index <code>1</code> will not be exist. I want to bypass it and pass only the index <code>0</code> or i want to create it and add value to it. </p>
  
  <pre><code>$eq = explode("  -  ", $div-&gt;textContent) ;
  $p_part_one_name = $eq[0] ;
  $p_part_two_name = $eq[1] ;
  </code></pre>