nodo JS Compruebe si un usuario existe en MySQL

connectDB.query("SELECT ACCOUNT_ID FROM registration WHERE ACCOUNT_ID = '"+ userAccnt +"'", function(err, result, field){
     if(result.length === 0){
        //new user logic
}else{  
    //existing user, redirect to another page 
 }
        }
Alive Anaconda