/**
  * Return true if the asset is valid and can be added to the page
  *
  * @return bool
  */
 public function isValid()
 {
     if (!is_file(TL_ROOT . '/' . $this->getParserPath())) {
         \System::log(sprintf('The Less parser could not be found for asset ID %s', $this->model->id), __METHOD__, TL_ERROR);
         return false;
     }
     return parent::isValid();
 }
 /**
  * Return true if the asset is valid and can be added to the page
  *
  * @return bool
  */
 public function isValid()
 {
     $response = exec('sass -v');
     if (!preg_match('/Sass \\d+\\.\\d+\\.\\d+/', $response)) {
         \System::log(sprintf('The Sass extension is not available for asset ID %s', $this->model->id), __METHOD__, TL_ERROR);
         return false;
     }
     return parent::isValid();
 }