In the above two, wouldn't it have been much easier to say e.g.:

`my $paginate_table_class = $args->{paginate_table_class} || '';`

?