function validate() { // Is this a PDF? if (!$this->isPdf($this->outputPath)) { $this->logError(file_get_contents($this->logfile)); return false; } return true; }