Simplify table lookup

Leverage nil maps and checked type assertions returning zero values.
Report closing error, if any