This ```if``` statement is repeated verbatim, again just below this statement. 

Also ```islandora_canvas_params.mappings['urn:uuid:' + annoId]``` may result in ```undefined``` if the given index is not part of the mappings array. In such a case the condition ```islandora_canvas_params.mappings['urn:uuid:' + annoId] != ''``` will result in ```true``` which I don't believe is correct in this situation.