Doubt regarding Product page function

I was working in a migration and noted this function:
isAddToCartDisabled () {
if (this.quantityError || this.isStockInfoLoading) {
return false
return this.isOnline && !this.maxQuantity && this.manageQuantity && this.isSimpleOrConfigurable
I didn’t get why this function is like that, isn’t supposed to work like: if I have some quantity error or the stock info is loading then the add to cart should be disable ?