fixes a bug where {a:String} was considered empty