If you put the response in a variable, you can find out the status (i.e. not found) without using string comparison, which is inherently brittle.  

On that note, why do you need to to hit the setlists api just to return the music brainz id.