Check whether the array is empty or not.

/**
 * Check whether the array is empty or not.
 */
public function isEmpty(): bool

Examples

$arrays = Arrays::create([0 => 'blue', 1 => 'red', 2 => 'green', 3 => 'red']);

if ($arrays->isEmpty()) {
    // do something...
}

Getting Started

Methods