An attempt to fix #49 (foo example, handle empty objects)