server: check entry existence correctly