Re-added getEntryExist function