public function fileExists() { global $Campsite; if (!self::IsValidPath(dirname($this->m_data['Name']))) { return false; } if (!is_file($Campsite['TEMPLATE_DIRECTORY'] . "/" . $this->m_data['Name'])) { return false; } return true; }