public function merge_existing_paths() { $paths = $this->get_existing_paths(); if (!empty($paths) && $this->get_custom_path() || count($paths) > 1) { foreach ($paths as $old_path) { $this->move_old_backups($old_path); } } }