title: I want to query for vendors in a certain location and if there is no vendor in that location i want it to return all the vendors in the database
body: <p><strong>I want to query for vendors in a certain location and if there is no vendor in that location i want it to return all the vendors in the database</strong></p>
  <pre><code>        Vendor.find({location: req.params.location}, {
              vendorpassword: 0
          }, function (err, vendor) {
              if (err) {
                  res.status(500).json({
                      error: 'An error occurred'
                  });
              } else if (!vendor) {
                  Vendor.find({},{
                      vendorpassword: 0
                  },
                  function (err, vendor) {
                          res.status(400).json({
                              vendor
                          })});
                  
              } else {
                  res.status(200).json({
                      vendor
                  })
              }
          })
      },```
  </code></pre>