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

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

        $this->loadedAssets[$type][] = $filename;
        return true;
    }
final protected function canLoadAsset ( $ file , $ type ) { $ filename = basename ( $ file ) ; if ( in_array ( $ filename , $ this -> loadedAssets [ $ type ] ) ) return false ; $ this -> loadedAssets [ $ type ] [ ] = $ filename ; return true ; }
Checks if the asset has not been loaded before
@param string $file
@param stirng $type css|js|icon|misc|update
@return boolean
Checks if the asset has not been loaded before