original_string: public function has_subscriber($subscriptions)
      {
          $enabled_components = $this->wrappedObject->enabled_components()->orderBy('order')->pluck('id')->toArray();
          $intersected = array_intersect($enabled_components, $subscriptions);
  
          return count($intersected) != 0;
      }
code: public function has_subscriber($subscriptions)
      {
          $enabled_components = $this->wrappedObject->enabled_components()->orderBy('order')->pluck('id')->toArray();
          $intersected = array_intersect($enabled_components, $subscriptions);
  
          return count($intersected) != 0;
      }
code_tokens: public function has_subscriber ( $ subscriptions ) { $ enabled_components = $ this -> wrappedObject -> enabled_components ( ) -> orderBy ( 'order' ) -> pluck ( 'id' ) -> toArray ( ) ; $ intersected = array_intersect ( $ enabled_components , $ subscriptions ) ; return count ( $ intersected ) != 0 ; }
docstring: Determine if any of the contained components have active subscriptions.
  
  @return bool
docstring_tokens: Determine if any of the contained components have active subscriptions .