I have an Entity Order which hold Suppliers in an Arraycollection. In my controller i want to check if this arraycollection is empty:
$suppliers = $order->get
You can also use the count() PHP function:
count()
if (count($suppliers) < 1) { }