for record in data['terminals'].values(): record['password_set'] = bool(record.pop('password', ''))