src/Theme.php
private function isPathValid(string $theme): bool
    {
        if (!is_dir(rtrim($this->themePath, '/') . '/' . $theme)) {
            return false;
        }

        return true;
    }
private function isPathValid(string $theme): bool
    {
        if (!is_dir(rtrim($this->themePath, '/') . '/' . $theme)) {
            return false;
        }

        return true;
    }
private function isPathValid ( string $ theme ) : bool { if ( ! is_dir ( rtrim ( $ this -> themePath , '/' ) . '/' . $ theme ) ) { return false ; } return true ; }
Checks whether the theme directory exists

@param string $theme The name of the theme

@return bool True when the directory of the theme exists
Checks whether the theme directory exists