Added empty recordset check to WriteArrayTo*File methods