我想在删除之前检查我的removeDelegate方法中是否已经有一个委托(delegate)。我怎么做?这是我到目前为止所得到的:protocolLocationManagerDelegate{funclocationManagerDidUpdateLocation(oldLocation:CLLocationCoordinate2D,currentLocation:CLLocationCoordinate2D)}classLocationManager:NSObject{privatevar_delegates=[LocationManagerDelegate]()funcremo