original_string: public function has($key)
      {
          $keys = explode('.', $key);
          $cKeys = count($keys);
          $config = $this->_arr;
  
          for ($i = 0; $i < $cKeys; ++$i) {
              if (is_array($config)) {
                  if (array_key_exists($keys[$i], $config)) {
                      $config = $config[$keys[$i]];
                  } else {
                      return false;
                  }
              } else {
                  return false;
              }
          }
  
          return true;
      }
code: public function has($key)
      {
          $keys = explode('.', $key);
          $cKeys = count($keys);
          $config = $this->_arr;
  
          for ($i = 0; $i < $cKeys; ++$i) {
              if (is_array($config)) {
                  if (array_key_exists($keys[$i], $config)) {
                      $config = $config[$keys[$i]];
                  } else {
                      return false;
                  }
              } else {
                  return false;
              }
          }
  
          return true;
      }
code_tokens: public function has ( $ key ) { $ keys = explode ( '.' , $ key ) ; $ cKeys = count ( $ keys ) ; $ config = $ this -> _arr ; for ( $ i = 0 ; $ i < $ cKeys ; ++ $ i ) { if ( is_array ( $ config ) ) { if ( array_key_exists ( $ keys [ $ i ] , $ config ) ) { $ config = $ config [ $ keys [ $ i ] ] ; } else { return false ; } } else { return false ; } } return true ; }
docstring: Checks whether config has a certain key.
  
  @param string $key Dot-separated string of key
  
  @return bool
docstring_tokens: Checks whether config has a certain key .