so something like:

    if ( raw.repository && raw.canon_url === "https://bitbucket.org") {

Would be better?