protected function exists(string $resource, Theme $theme = null) : bool
    {
        return is_file($this->getResourcePath($resource, $theme));
    }
protected function exists(string $resource, Theme $theme = null) : bool
    {
        return is_file($this->getResourcePath($resource, $theme));
    }
protected function exists ( string $ resource , Theme $ theme = null ) : bool { return is_file ( $ this -> getResourcePath ( $ resource , $ theme ) ) ; }
Check if resource exists

@param string                $resource
@param \Laranix\Themer\Theme $theme
@return bool
Check if resource exists