/** * Checks if the current group of assets has a cached copy. If the assets are set to be * forgotten the cached copy will not be returned. * * @return bool */ public function exists($forget) { $name = $this->name(); if ($exists = C::has($name) and $forget) { C::forget($name); // We don't want to return the cached assets because we cleared // the cache and we want a new fresh copy of the assets returned. return false; } return $exists; }