extend NSString#exists? to the outside of document

I want to use #exists? for a file which is on outside of document.
It can use instead of resource_exists? .
To be more general, I think.