return empty string is file does not exist or it does not implement getUrl