@staticmethod
def _is_in_result_dict(result_dict, dict_key, default_value):
    """
        Global function to check for the presence of an entry in a dictionary
        and give it a default value.
        :param result_dict: result_dict dictionary
        :param dict_key: entry (string)
        :param default_value:
        :return:
        """
    if dict_key not in result_dict or not result_dict[dict_key]:
        result_dict[dict_key] = default_value
    return result_dict[dict_key]
