title: Laravel map continue
body: <p>How I can in laravel map function continue loop?</p>
  
  <p>I have code:</p>
  
  <pre><code>return collect($response-&gt;rows ?? [])-&gt;map(function (array $userRow) {
          if ($userRow[0] == 'Returning Visitor') {
              return [
                  $userRow[1] =&gt; [
                      'type' =&gt; $userRow[0],
                      'sessions' =&gt; (int) $userRow[2],
                  ]
              ];
          } else {
              return false;
          }
  });
  </code></pre>
  
  <p>And output:</p>
  
  <pre><code>Collection {#986 ▼
     #items: array:4 [▼
       0 =&gt; false
       1 =&gt; false
       2 =&gt; array:1 [▶]
       3 =&gt; array:1 [▶]
      ]
  }
  </code></pre>
  
  <p>I don't need params with <code>false</code>, I need continue it or delete. How I can resolve this?</p>