from typing import Iterable
from typing import Hashable


def any_in(x: Iterable[Hashable], y: Iterable[Hashable]) -> bool:
    """
    Check if any elements in `x` is in `y`. Returns `True` if `x` is empty.

    Defined to improve readability.

    Examples:
        >>> any_in([1, 2, 2, 1, 2], [1, 2, 3])
        True
        >>> any_in([1, 2, 2, 4, 2], [1, 2, 3])
        True
        >>> any_in([1, 2, 2, 4, 2], [3, 5, 6])
        False
    """
    return bool(set(x).intersection(y))