original_string: public function containsOption($optionValue, $options)
      {
          if ($this->validationDisabled) {
              return true;
          }
  
          foreach ($options as $option) {
              if ($option['value'] == $optionValue) {
                  return true;
              }
          }
  
          return false;
      }
code: public function containsOption($optionValue, $options)
      {
          if ($this->validationDisabled) {
              return true;
          }
  
          foreach ($options as $option) {
              if ($option['value'] == $optionValue) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public function containsOption ( $ optionValue , $ options ) { if ( $ this -> validationDisabled ) { return true ; } foreach ( $ options as $ option ) { if ( $ option [ 'value' ] == $ optionValue ) { return true ; } } return false ; }
docstring: Checks whether given value is in the existing options.
  
  @param string $optionValue
  @param array  $options
  
  @return bool
docstring_tokens: Checks whether given value is in the existing options .