def is_iterable(obj):
    """
    Checks whether the given object is an iterable by calling iter.
    :param obj: the object to check
    :return: true if the object is iterable
    """
    try:
        _ = iter(obj)
    except TypeError:
        return False
    else:
        return True