node js return request response from another/child function?

I have an async method, inside the async method I’m calling another function. So I just want, if another function doesn’t exist data, then want to return response from another function.

Please follow the below example:-

async function generate_lineup(req, res) {
    var email =;
    check(email); // it handle global varibale & push data


async function check email(email) {

    // if error or email already exist then return from here
    return res.status(404).json({'status':'failed','message':'email already exist'});

Please let me know, it’s very urgent.