Fixing condition to check for id existence
Merge pull request #37 from paterczm/master

Fixing condition to check for id existence