HH\Set::isEmpty

Checks if the current Set is empty

public function isEmpty(): bool;

Returns

  • bool - true if the current Set is empty; false otherwise.

Examples

$s = Set {};
\var_dump($s->isEmpty());

$s = Set {'red', 'green', 'blue', 'yellow'};
\var_dump($s->isEmpty());