code: public function equalsAny(array $others, $caseSensitive = true)
      {
          foreach ($others as $other) {
              if ($this->equals($other, $caseSensitive)) {
                  return true;
              }
          }
  
          return false;
      }
docs: Check if token is equals to one of given.
  
  @param array $others        array of tokens or token prototypes
  @param bool  $caseSensitive perform a case sensitive comparison
  
  @return bool