Check for entries before output to fix protobox/protobox#62