HH\Pair::isEmpty

Description

public function isEmpty(): bool

Returns false; a Pair cannot be empty.

Return Values

  • bool - false

Examples

This example shows that a Pair can never be empty:

<?hh

namespace Hack\UserDocumentation\API\Examples\Pair\IsEmpty;

$p = Pair {'foo', -1.5};
var_dump($p->isEmpty());

$p = Pair {null, -1.5};
var_dump($p->isEmpty());
Output
bool(false)
bool(false)