This is available as Str\is_empty in the www repository.
Str\is_empty
Returns true if $string is null or the empty string
true
$string
namespace HH\Lib\Str; function is_empty( ?string $string, ): bool;
Returns false otherwise.
false
?string $string
bool