code: public function getPreparedThemeObject()
      {
          $name = $this->attainThemeName();
          $path = $this->attainPathName();
          
          $return = false;
          if ($name && $path) {
              // we are attained theme
              $return = $this->getThemeObject();
          	$return->setName($name);
          	$return->setThemesPath($path);
          }
          
          return $return;
      }
docs: Find Matched Theme and return object
  
  @return Theme|false