Use edb-keys-list rather than edb-cur-entry to check if there are entries.