malepoon/components/places/PlacesUIUtils.jsm
// Returns true if item really exists, false otherwise.
Returns true if item really exists, false otherwise.
Returns true if item really exists false otherwise .
function itemExists(aItemId) {
      try {
        bs.getItemIndex(aItemId);
        return true;
      }
      catch(e) {
        return false;
      }
    }
function itemExists ( aItemId ) { try { bs . getItemIndex ( aItemId ) ; return true ; } catch ( e ) { return false ; } }
Returns true if item really exists, false otherwise.
Returns true if item really exists false otherwise .