Should there be handling for the case where there is no pushed value? i.e. array is empty.  The array_pop function would return null in this case.  Would the handling be to set count to 0?