def check_in_queue(queue: list, elem_hash: str) -> bool:
    """Checks whether elements with provided hash exists in the queue

    Args:
        :param list queue: specific queue to check
        :param str elem_hash: name to find in the queue

    Returns:
        :return: True if element found, False otherwise
        :rtype: bool
    """
    for elem in queue:
        if elem[2] == elem_hash:
            return True
    return False