public existsList ( string $listId ) : boolean | ||
$listId | string | The ID of the list. |
return | boolean |
public function existsList($listId)
{
// try and fetch the record
try {
$this->getList($listId);
} catch (Exception $e) {
return false;
}
// if we made it here, the record exists
return true;
}