from typing import Union


def _is_dict(data: Union[dict, list]) -> bool:
    """
    Checks whether provided data structure is a dictionary or not.

    :param data: The data to check
    :return: true if is dict, false otherwise
    """
    if isinstance(data, dict):
        return True

    return False