Return value get request

Return value get request

I currently have the following code:

  1. $('#toevoegenForm').submit(function(){
  2.        
  3.         var name = $('input[name=name]').attr('value');
  4.         var zip = $('input[name=zip]').attr('value');
  5.         var controle = false;
  6.        
  7.         $.get('ajax/unique/product.php', { q: name }, function(data){
  8.            
  9.             var exists = false;
  10.             $(data).find('invalid').each(function() {
  11.                 exists = true;
  12.             });
  13.            
  14.             if( name == '' ){
  15.                 alert('Er is geen productnaam ingevuld.');
  16.             } else if( exists == true ){
  17.                 alert('De ingevulde productnaam bestaat al.');
  18.             } else if( zip == '' ){
  19.                 alert('Er is geen zip-bestand geselecteerd.');
  20.             } else if( zip.substr(-4).toLowerCase() != '.zip' ){
  21.                 alert('Het geselecteerde bestand is een ' + zip.substr(-3) + '-bestand. Selecteer een zip-bestand.');
  22.                 $('input[name=zip]').attr('value','');
  23.             } else {
  24.                 controle = true;
  25.             }             
  26.        
  27.         });
  28.        
  29.         //alert(controle);
  30.        
  31.         if( !controle ){   
  32.             return false;
  33.         }
  34.        
  35.     });

This allways submits the form. When I uncomment alert(controle); it works exactly how it should be, but with the alert box. How could I make this work without the alert message?