[ticket/989] add simple validation for $archive_var