if ( $class->can($check_method) ) { # they don't all have these
my $eh = $class->$check_method( $row );
$num_errors++ if keys(%$eh);
if ( $class->can($check_method) ) { # they don't all have these
my $eh = $class->$check_method( $row );
$num_errors++ if keys(%$eh);