from typing import Any


def _attr_checker(*, obj: Any, attr: str) -> bool:
    """Check class attributes.

    All params must be passed in as keyword arguments.
    This function is supposed to be used as a partial function.
    Partial functions with positional arguments do not work very well.

    :param obj: The object which should contain the given attribute
    :param attr: The attribute

    """
    try:
        return bool(getattr(obj, attr))
    except AttributeError:
        return False