Bagaimana cara memeriksa apakah email sudah ada dalam database menggunakan javascript

const userEmail = {emailAddress: email}

const { email } = req.body;

const foundUser = await User.find({ emailAddress: email });

foundUser.length > 0 ? "email already exists" : "email does not exist" 
Runtime Terror