title: Check if an object exists in an array
body: <p>I've got an array with multiple person-objects in it, this objects look like this:</p>
  
  <pre><code>id: 1,
  name: 'Max Muster',
  email: 'max.muster@example.com',
  language: 'German'
  </code></pre>
  
  <p>Now, I've got objects in another array, which doesn't look exactly the same:</p>
  
  <pre><code>id: 1,
  name: 'Max Muster',
  email: 'max.muster@example.com',
  language: 'de'
  </code></pre>
  
  <p>I've got a foreach-loop to loop through array 2 and check if the objects exists in array 1.</p>
  
  <pre><code>foreach($array2 as $entry) {
      if(existsInArray($entry, $array1)) {
          // exists
      } else {
          // doesn't exist
      }
  }
  </code></pre>
  
  <p>Is there a function to check (like my existsInArray()), if my object exists in the array? I just need to check, if the object-id exists, other attributes doesn't matter.</p>