Convert lists into hash table eagerly rather than lazily.

The code is cleaner this way.
Use 'null' instead of 'not'.

The variable being tested is not a boolean, so 'null' is more idiomatic.