Refactoring the code that determines if an Entry has already been overtaken or not