public function setPath($path) { if (file_exists($path)) { return self::$templatepath = $path; } Error::log('Path ' . $path . ' not found'); }