def get_attribute(obj, attr):
    """
    Return object attribute value, if it exists.

    Arguments:
        obj (object): The object.
        attr (str): The name of the object attribute.
    """
    at = getattr(obj, attr, None)
    if at:
        return at
    else:
        return None