public function themeIsDefault($key = null) : bool
    {
        if ($key instanceof Theme) {
            return $key->getKey() === $this->getDefaultTheme()->getKey();
        }

        return $this->getTheme($key)->getKey() === $this->getDefaultTheme()->getKey();
    }
public function themeIsDefault($key = null) : bool
    {
        if ($key instanceof Theme) {
            return $key->getKey() === $this->getDefaultTheme()->getKey();
        }

        return $this->getTheme($key)->getKey() === $this->getDefaultTheme()->getKey();
    }
public function themeIsDefault ( $ key = null ) : bool { if ( $ key instanceof Theme ) { return $ key -> getKey ( ) === $ this -> getDefaultTheme ( ) -> getKey ( ) ; } return $ this -> getTheme ( $ key ) -> getKey ( ) === $ this -> getDefaultTheme ( ) -> getKey ( ) ; }
Check if active theme is default theme

@param Theme|string|null $key
@return bool
Check if active theme is default theme