Minor change to logic

Removed foundEntry flag. Unnecessary.