src/ThemeManager/ThemeCollection.php
public function getTheme($name)
    {
        /* @var $theme Theme */
        foreach ($this->items as $theme) {
            if ($theme instanceof Theme && $theme->getName() == $name) {
                return $theme;
            }
        }

        return false;
    }
public function getTheme($name)
    {
        /* @var $theme Theme */
        foreach ($this->items as $theme) {
            if ($theme instanceof Theme && $theme->getName() == $name) {
                return $theme;
            }
        }

        return false;
    }
@param $name

@return bool|Theme