original_string: protected function isOptionSet($provides, $options = [])
      {
          if (isset($options[$provides]) && $options[$provides] === true) {
              return true;
          } elseif (!isset($options[$provides]) && Options::options()[$provides]->isDefault()) {
              return true;
          }
  
          return false;
      }
code: protected function isOptionSet($provides, $options = [])
      {
          if (isset($options[$provides]) && $options[$provides] === true) {
              return true;
          } elseif (!isset($options[$provides]) && Options::options()[$provides]->isDefault()) {
              return true;
          }
  
          return false;
      }
code_tokens: protected function isOptionSet ( $ provides , $ options = [ ] ) { if ( isset ( $ options [ $ provides ] ) && $ options [ $ provides ] === true ) { return true ; } elseif ( ! isset ( $ options [ $ provides ] ) && Options :: options ( ) [ $ provides ] -> isDefault ( ) ) { return true ; } return false ; }
docstring: Check whether an option is set in the options aray.
  
  @param string $provides
  @param array  $options
  
  @return bool
docstring_tokens: Check whether an option is set in the options aray .