``is_object($name)`` is useless. ``$name instanceof \Assetic\Asset\BaseAsset`` will return false if it is not an object