code: public function hasOption($key)
      {
          return $this->options->filter(function(FieldOptionInterface $option) use ($key) {
              return $option->getKey() == $key;
          })->count() != 0;
      }
docs: @param string $key
  
  @return bool