/**
 * Helper method to 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 assetExists(string $type, string $name) : bool
{
    return $this->registry->exists($type, $name);
}