Error Handling _id Cleaner Alternative?

We get a clue in the code to “Catch the InvalidId error by string matching, and then handle it.”

IMO, there’s a cleaner way using ObjectId bson class that’s already being required.

if (!ObjectId.isValid(id)) return null
throw e

Solution passes the tests as well.