def obj_has_attr(obj, name):
    """Return True if the object has the attribute.

    Parameters
    ----------
    obj: object
        Object to check
    name: str
        Attribute name to check
    """
    return hasattr(obj, name)
