Using lyaml.load() any empty (flow) mappings and sequences cannot be distinguished in the returned Lua table.
Both will show up as an empty table. With minimum disruption this can be easily fixed by optionally (opts.distinct_sequence) allowing
load_sequence to return {{}} in case of #sequence == 0.