title: What am I supposed to write in my if condition in order to check if there is a record in my MySQL query?
body: <p>What am I supposed to write in my if condition in order to check if there is a record in my MySQL query? I want to console.log('Taken') if there is already a user with the post-ed username in my user table.</p>
  
  <pre><code>db.query('SELECT username FROM user WHERE username = ?', [username], function (err, result) {
      if (err) throw err;
      if () {
        console.log('Taken');
      } else {
        console.log('Free')
      }
    });
  </code></pre>