Corrected check of empty BACKUP_DEVICES list.