src/yimaTheme/Theme/Locator.php
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;
    }
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;
    }
Find Matched Theme and return object

@return Theme|false