final protected function canLoadAsset($file, $type) {
        $filename = basename($file);
        if (in_array($filename, $this->loadedAssets[$type]))
            return false;

        $this->loadedAssets[$type][] = $filename;
        return true;
    }