Add else for object handling in field output