code: public boolean isBound(@NonNull BeaconConsumer consumer) {
          synchronized(consumers) {
              // Annotation doesn't guarantee we get a non-null, but raising an NPE here is excessive
              //noinspection ConstantConditions
              return consumer != null && consumers.get(consumer) != null &&
                      (mScheduledScanJobsEnabled || serviceMessenger != null);
          }
      }
docs: Tells you if the passed beacon consumer is bound to the service
  
  @param consumer
  @return