Is it possible to get a basket instance for a profile in SFCC?

Here are my intentions:

I have a job with the step which does the following: `CustomerMgr.processProfiles(sendEmailIfNecessary, "");` i.e. I query all the customers which created an account in my SiteGenesis store and then `sendEmailIfNecessary` needs to check for each customer whether or not the customer added something into his or her cart and in case he or she did add something the email should be issued telling the customer that there are goods in their cart.

So, in `sendEmailIfNecessary` I have an access to the profile of the user under consideration and now I want to access the basket for the customer.

I tried to use `BasketMgr` as a solution. And here is my attempt:

```
var sendEmailIfNecessary = function(profile) {
    var basket = BasketMgr.getBasket(profile.getUUID());
    var stop = 1;
};

```

But the solution does not work. I am telling this, because once I place a breakpoint in UX Studio on the `var stop = 1;` line I never reach it, while I am able to reach the line `var basket = BasketMgr.getBasket(profile.getUUID());` with a breakpoint. Also I am not able to step over the line `var basket = BasketMgr.getBasket(profile.getUUID());`.

Also, the solution I tried should not work according to [the documentation](https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp), since it states that:

> 
> This method returns a valid basket of the session customer or null if none is found.
> 
> 
> 

While I am trying to access not the session customer, but all registered customers. And I was not able to find anything else reasonable in the documentation in regard to my problem.

Will appreciate any help. Thank you.