func (p *PushCenter) HasHandlerForIdentity(identity Identity) bool {

	if identity.Name == AllIdentity.Name {
		return p.defaultHander != nil
	}
	_, exists := p.handlers[identity.Name]
	return exists
}
func (p *PushCenter) HasHandlerForIdentity(identity Identity) bool {

	if identity.Name == AllIdentity.Name {
		return p.defaultHander != nil
	}
	_, exists := p.handlers[identity.Name]
	return exists
}
func ( p * PushCenter ) HasHandlerForIdentity ( identity Identity ) bool { if identity . Name == AllIdentity . Name { return p . defaultHander != nil } _ , exists := p . handlers [ identity . Name ] return exists }
// HasHandlerForIdentity verifies if the given identity has a registered handler.
HasHandlerForIdentity verifies if the given identity has a registered handler .