Helmuts programming example is incorrect.
PHP arrays start from zero, so your first entry is $entry[0] and your last entry is $entry[$entry["count"] - 1].
$entry[$entry["count"]] will never exist, thus his usage of is_null.
Helmuts usage of is_null is not elegant, its just poor understanding of arrays.
Save some confusion and remove Helmuts entry and this one.