check for the existence of file instead of url

A resource has no file, when a default_url is provided. However if you check for the presence of url, it will pass it.
Merge pull request #1 from Andrekra/fix/file_presence

dude, sorry for delay I have somehow didn't see this pull request