original_string: public function isThemePackage($packageName)
      {
          $composerPackage = $this->findPackageGlobal($packageName);
  
          if (is_null($composerPackage) === true) {
              throw new \RuntimeException(sprintf('The theme: "%s" does not exist.', $packageName));
          }
  
          return $composerPackage->getType() == self::PACKAGE_TYPE_THEME;
      }
code: public function isThemePackage($packageName)
      {
          $composerPackage = $this->findPackageGlobal($packageName);
  
          if (is_null($composerPackage) === true) {
              throw new \RuntimeException(sprintf('The theme: "%s" does not exist.', $packageName));
          }
  
          return $composerPackage->getType() == self::PACKAGE_TYPE_THEME;
      }
code_tokens: public function isThemePackage ( $ packageName ) { $ composerPackage = $ this -> findPackageGlobal ( $ packageName ) ; if ( is_null ( $ composerPackage ) === true ) { throw new \ RuntimeException ( sprintf ( 'The theme: "%s" does not exist.' , $ packageName ) ) ; } return $ composerPackage -> getType ( ) == self :: PACKAGE_TYPE_THEME ; }
docstring: Determines if package is a Spress theme.
  
  @return bool
  
  @throws RuntimeException If the package doesn't exist
docstring_tokens: Determines if package is a Spress theme .