title: Laravel For Loop is deleting 'level' key
body: <p>I am facing a peculiar problem.
  I have this array:</p>
  
  <pre><code>    array:2 [▼
      0 =&gt; array:7 [▼
      "factor_color" =&gt; "#000066"
      "score" =&gt; 2.5
      "level" =&gt; 3
      "title" =&gt; "Impression Management"
      "description" =&gt; """
    &lt;p&gt;\r\n
    \tImpression management is the tendency to project an unrealistically positive image while answering to the questions. This tendency is being captured by use of an intelligence algorithm which monitors candidate`s response pattern on the questions and calculates if the candidate is trying to project highly positive image about himself/herself.&lt;/p&gt;\r\n
    """
  
      "interpretation" =&gt; ""
      "rescale_type" =&gt; "none"
    ]
    1 =&gt; array:7 [▼
      "factor_color" =&gt; "#ff0000"
      "score" =&gt; 0.588235
      "level" =&gt; 1
      "title" =&gt; "Mid Response Tendency"
     "description" =&gt; """
    &lt;p&gt;\r\n
    \tThe tendency to answer middle points of the scales or &amp;#39;cannot say&amp;#39; answer option more than most candidates. This indicates the level of test-inhibition the candidate had while answering to the questions on this test. A high score generally indicates that the candidate was apprehensive about the test so he/she took the middle path and prefered to stay safe rather than displaying his/her true preference.&lt;/p&gt;\r\n
    """
     "interpretation" =&gt; ""
     "rescale_type" =&gt; "none"
    ]
  ]
  </code></pre>
  
  <p>I am passing this array to for loop in a file I created to store custom functions for my app.
  $count = count($factor_data);</p>
  
  <pre><code>    for ($i=0;$i&lt;=$count-1;$i++) {
  
          $title = trim($factor_data[$i]['title']);
          $color = $factor_data[$i]['factor_color'];
          $description = $factor_data[$i]['description']? trim($factor_data[$i]['description']):false;
          $interpretation = ($factor_data[$i]['interpretation'])?trim($factor_data[$i]['interpretation']):false;
          $score = $factor_data[$i]['level']?:round($factor_data[$i]['score']);//line 517
  
          print_r($factor_data[$i]); continue;
  </code></pre>
  
  <p>Here is the result for print_r():</p>
  
  <pre><code>    Array ( [factor_color] =&gt; #000066 
      [score] =&gt; 2.5 
      [level] =&gt; 3 
      [title] =&gt;    Impression Management 
      [description] =&gt;
      [interpretation] =&gt; 
      [rescale_type] =&gt; none 
      ) 
  
     Array ( 
      [factor_color] =&gt; #ff0000 
      [score] =&gt; 0.588235 
      [level] =&gt; 1 
      [title] =&gt; Mid Response Tendency 
      [description] =&gt;
      [interpretation] =&gt; 
      [rescale_type] =&gt; none 
      )
  </code></pre>
  
  <p>but Laravel5.2 gives this error:</p>
  
  <pre><code>ErrorException in ReportPDF.php line 517:
  Undefined index: level
  </code></pre>
  
  <p>What am I doing wrong? If I just delete $score variable or replace it by a constant value it works fine. </p>