Fix order so latest node can stop complaining
Merge pull request #2 from akshayp/master

Tiny patch to fix order of checking exists