In java use API I can resolve a path(String) to resource and know if that resource exits or not. But in java-script use API, I am able to convert a path(String) to resource using (granite.resource.resolve(path)) but how can I know if the string path which I converted to a resource exists in my JCR?