my $row = shift @{$this->{ps_table}}; return 0 if !$row;