title: Undefined index error if any element is empty
body: <p>I am sending 5 input values on single click in angularjs. Data is send as objects of object. For example </p>
  
  <p><code>Object{0:Object, 1:object, 2:Object .., 5:Object}</code>.</p>
  
  <p>Every object have Two inputs say first name and last name. User can send any input pair.</p>
  
  <p>I am sending this as post request. Now on Backend side, I m using Laravel. I m storing this object in a variable let say 
   `$x=$request->input('data');</p>
  
  <p>I loop it for every object it will create new record.</p>
  
  <p>Problem I am facing:
  If all objects is sends then it properly saving the data in database.
  But if one of the object is empty, Empty means if use enter 2nd input and 3rd input only and leave blank the 1st, 3rd and 5th input. </p>
  
  <p>Then laravel throwing error of undefined index as on first object it not receiving any firstname or lastname for 1st request. SO how can I solve this problem.I wanted that it should update the fields whichever it receives.</p>