dynamic checkSubscriptionNeeded()

Source

checkSubscriptionNeeded() {
  if (subscriptionCount <= 0) {
    subscriptionCount = 0;
    onValueUnsubscribe();
  } else {
    onValueSubscribe();
  }
}