Checks whether the collection is empty.
Note: This is preferable over count() == 0.
Return value
boolean TRUE if the collection is empty, FALSE otherwise.
Overrides Collection::isEmpty
File
- drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php, line 350
Class
- ArrayCollection
- An ArrayCollection is a Collection implementation that wraps a regular PHP array.
Namespace
Doctrine\Common\Collections
Code
public function isEmpty() {
return !$this->_elements;
}