title: How to know if input array elements are empty?
body: <p>I have an input wich is an array, the key of the array is the lang id like this</p>
  
  <pre><code>&lt;input type="text" name="name[{{ $lang-&gt;id }}]"&gt;
  </code></pre>
  
  <p>this field is optional, so i don't whant to validate if it is or not, what i want is to check if both element of the array are empty do something. Lets supose this is the input <code>name[]</code></p>
  
  <pre><code>{
      "1": null,
      "2": null
  }
  </code></pre>
  
  <p>i can't do </p>
  
  <pre><code>if($request-&gt;has('name')) {
      //do something
  }else {
      //do another thing
  }
  </code></pre>
  
  <p>Because the <code>$request</code> has a name, is there a way to do something like this</p>
  
  <pre><code>if(array_is_empty($request-&gt;has('name'))) {
      //do something
  }else {
      //do another thing
  }
  </code></pre>