Verify the value of the variable configuration check-available-stock

Verify the value of the variable configuration check-available-stock before throwing an exception "Not enough stock" in Order actions.
I think you may shorten it by doing: 
```php
if (1 ==  ConfigQuery::read("check-available-stock", 0)){
  throw ...
```