Added test to var coming from settings.json file to avoid errors