/**
* Check whether the asset exists in the registry.
*
* @param string $type Asset type, script or style
* @param string $name Asset name
*
* @return boolean
*
* @since 4.0.0
*/
public function exists(string $type, string $name) : bool
{
return !empty($this->assets[$type][$name]);
}