original_string: public function hasMembershipService()
      {
  
          $has = !empty($this->contextId);
          if ($has) {
              $has = !empty($this->getContext()->getSetting('custom_context_memberships_url'));
          }
  
          return $has;
  
      }
code: public function hasMembershipService()
      {
  
          $has = !empty($this->contextId);
          if ($has) {
              $has = !empty($this->getContext()->getSetting('custom_context_memberships_url'));
          }
  
          return $has;
  
      }
code_tokens: public function hasMembershipService ( ) { $ has = ! empty ( $ this -> contextId ) ; if ( $ has ) { $ has = ! empty ( $ this -> getContext ( ) -> getSetting ( 'custom_context_memberships_url' ) ) ; } return $ has ; }
docstring: Check if the Membership service is supported.
  
  @return boolean True if this resource link supports the Membership service
docstring_tokens: Check if the Membership service is supported .