public static function isAdded($type, $name)
    {
        if (isset(self::$data[$type]['header'][$name])) {
            return true;
        } elseif (isset(self::$data[$type]['footer'][$name])) {
            return true;
        }

        return false;
    }
public static function isAdded($type, $name)
    {
        if (isset(self::$data[$type]['header'][$name])) {
            return true;
        } elseif (isset(self::$data[$type]['footer'][$name])) {
            return true;
        }

        return false;
    }
public static function isAdded ( $ type , $ name ) { if ( isset ( self :: $ data [ $ type ] [ 'header' ] [ $ name ] ) ) { return true ; } elseif ( isset ( self :: $ data [ $ type ] [ 'footer' ] [ $ name ] ) ) { return true ; } return false ; }
Check if a particular style or script has been added.

@since 1.1.5

@param string $type → script|style
@param string $name → script or style name

@return bool
Check if a particular style or script has been added .