code: public function anyOfOptions(OptionCollection $options)
      {
          $name = $this->getOptionName();
          $keys = $options->keys();
  
          return in_array($name, $keys);
      }
docs: Check if an option is one of the option in the collection.