title: How can I check for existence of Itunes track in Applescript without throwing error
body: <p>the idea of this script (simplified to show the issue) is checks if a track exists, </p>
  
  <pre><code>    tell application "iTunes"
          set matchtrack to get first track in playlist 1 whose persistent ID is "F1A68AD90AA66648"
          if matchtrack is not {} then
              print name of matchtrack
          else
              print "no track found"
          end if
      end tell
  </code></pre>
  
  <p>unfortunately if the track does not exist it gives error</p>
  
  <pre><code>"iTunes got an error: Can’t get track 1 of playlist 1 whose persistent ID = \"F1A68AD90AA66648\"." number -1728 from track 1 of playlist 1 whose persistent ID = "F1A68AD90AA66648"
  '
  </code></pre>
  
  <p>instead of just printing 'no track found'</p>