Doctrine ArrayCollection has a method isEmpty
that will do what you are looking for.
if ($suppliers->isEmpty()) { }
Take a look at the documentation for it here
Doctrine ArrayCollection has a method isEmpty
that will do what you are looking for.
if ($suppliers->isEmpty()) { }
Take a look at the documentation for it here