Sorry, I'm probably just being really dense.  But what I provided would only raise the exception if file is not a rackspace file object and if object is not nil.  If it is nil, you won't raise.  If it is a rackspace file, it will not raise.