def existed(fileobj):
    """
    Returns a boolean indicating whether a file opened by openReadWrite existed
    in the filesystem before it was opened.
    """
    return 'r' in getattr(fileobj, "mode", '')