#try with the main email
$email ||= ''; # avoid undef
my $borrower;
my $search_results;
my $search_results = [];
# Find the borrower by his userid or email
if ($username) {
-