Condense if-logic when checking whether top-level variable exists.
New behavior confirms variable creation prior to other functions being called.
Merge pull request #2 from williambogaiv/master

Condense if-logic when checking whether top-level variable exists.