src/Forms/HTMLEditor/TinyMCECombinedGenerator.php
protected function resourceExists($resource)
    {
        if (!$resource) {
            return false;
        }
        if ($resource instanceof ModuleResource) {
            return $resource->exists();
        }
        $base = rtrim(Director::baseFolder(), '/');
        return file_exists($base . '/' . $resource);
    }
protected function resourceExists($resource)
    {
        if (!$resource) {
            return false;
        }
        if ($resource instanceof ModuleResource) {
            return $resource->exists();
        }
        $base = rtrim(Director::baseFolder(), '/');
        return file_exists($base . '/' . $resource);
    }
protected function resourceExists ( $ resource ) { if ( ! $ resource ) { return false ; } if ( $ resource instanceof ModuleResource ) { return $ resource -> exists ( ) ; } $ base = rtrim ( Director :: baseFolder ( ) , '/' ) ; return file_exists ( $ base . '/' . $ resource ) ; }
Check if the given resource exists

@param string|ModuleResource $resource
@return bool
Check if the given resource exists