original_string: public function has(string $index, array $options = []) : bool
      {
          $separator = isset($options['separator']) ?
              $options['separator'] :
              $this->getOption('separator', '.');
          $value = $this->getData();
          $keys = explode($separator, $index);
  
          foreach ($keys as $key) {
              if (!is_array($value) || !array_key_exists($key, $value)) {
                  return false;
              }
  
              $value = $value[$key];
          }
  
          return true;
      }
code: public function has(string $index, array $options = []) : bool
      {
          $separator = isset($options['separator']) ?
              $options['separator'] :
              $this->getOption('separator', '.');
          $value = $this->getData();
          $keys = explode($separator, $index);
  
          foreach ($keys as $key) {
              if (!is_array($value) || !array_key_exists($key, $value)) {
                  return false;
              }
  
              $value = $value[$key];
          }
  
          return true;
      }
code_tokens: public function has ( string $ index , array $ options = [ ] ) : bool { $ separator = isset ( $ options [ 'separator' ] ) ? $ options [ 'separator' ] : $ this -> getOption ( 'separator' , '.' ) ; $ value = $ this -> getData ( ) ; $ keys = explode ( $ separator , $ index ) ; foreach ( $ keys as $ key ) { if ( ! is_array ( $ value ) || ! array_key_exists ( $ key , $ value ) ) { return false ; } $ value = $ value [ $ key ] ; } return true ; }
docstring: Returns true if the parameter exists or false otherwise.
  
  @param string $index   - Index to search for.
  @param array  $options - Options.
  
  @return bool
docstring_tokens: Returns true if the parameter exists or false otherwise .