Added check if config web/url/use_store is enabled
Improved code readability