code: public function alreadyLoaded($name)
      {
          foreach($this->loaded as $item)
          {
              if($item['name'] === $name)
              {
                  return true;
              }
          }
  
          return false;
      }
docs: Check if given library name was already loaded.
  @param  string $name Name of library/asset.
  @return boolean