Simplify conditional in mongo db