@staticmethod
def get_config(configs, setting, default=None):
    """
        Checks if the setting exists in the configs dictionary. If it exists
        it is returned. Otherwise the default is returned.

        :param configs: Configs dictionary from the JSON config file.
        :param setting: The setting to be checked.
        :param default: The default to return if there is no setting.
        :return: The final config setting.
        """
    if configs.get(setting):
        return configs.get(setting)
    else:
        return default
