code: private function checkOptions($options)
      {
          foreach ($this->required as $req) {
              if (!array_key_exists($req, $options)) {
                  throw new \Exception('"' . $req . '" option has not been defined');
              }
          }
      }
docs: Check that all required options are defined
  
  Throws Exception if option is not defined