Is "|| entry == nil" needed? I would expect "if err != nil {" to be enough.