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