src/View/Helper/Traits/IncludeTrait.php
protected function _hasAsset($path, $type, $external)
    {
        return !$this->Url->assetPath($path, $this->_getAssetType($type)) && $external === false;
    }
protected function _hasAsset($path, $type, $external)
    {
        return !$this->Url->assetPath($path, $this->_getAssetType($type)) && $external === false;
    }
protected function _hasAsset ( $ path , $ type , $ external ) { return ! $ this -> Url -> assetPath ( $ path , $ this -> _getAssetType ( $ type ) ) && $ external === false ; }
Check has asset.

@param string $path
@param string $type
@param bool $external
@return bool
Check has asset .