Corrected check on xml_file presence.