Doctrine\Common\Collections\ArrayCollection::exists
Tests for the existence of an element that satisfies the given predicate.
Signature
public function exists(Closure
$p )
Parameters
$p
— Closure- The predicate.
Returns
- boolean
- TRUE if the predicate is TRUE for at least one element, FALSE otherwise.