Help for this page
# return 1 (true) if user is found, 0 (false) if not found sub check_exist { ... return $rowcount > 0; }
if (check_exist($user)) { # handle_exception... } else { # user does not exist }