protected function loadPreviousConfig($xmlFile) { if (file_exists($xmlFile)) { $doc = simplexml_load_file($xmlFile); return $doc; } return false; }