Moved the check for whether an instance has a real filename into a new method, since...