public function hasFinalItem(): bool
    {
        foreach ($this->items as $item) {
            if ($item->hasEofMark() && !$item->hasFurther()) {
                return true;
            }
        }
        return false;
    }
public function hasFinalItem(): bool
    {
        foreach ($this->items as $item) {
            if ($item->hasEofMark() && !$item->hasFurther()) {
                return true;
            }
        }
        return false;
    }
public function hasFinalItem ( ) : bool { foreach ( $ this -> items as $ item ) { if ( $ item -> hasEofMark ( ) && ! $ item -> hasFurther ( ) ) { return true ; } } return false ; }
Check if this set has item where the next token must be EOF
@return bool
Check if this set has item where the next token must be EOF