/** * Return whether the Asset has a URL. * * @return bool */ public function getHasUrls() { if (!$this->_sourceType) { $this->_sourceType = craft()->assetSources->populateSourceType($this->getSource()); } return $this->_sourceType->getHasUrls(); }