I have an array with 2 values, for each value I need to make a query via AJAX to an API to query the stock. If there is stock for all three I execute a message, if there is no stock of any of these I execute another. For every I have an array with 2 values, for each value I