code: private boolean hasResources(List<Resource> resources) {
          for (Resource resource : resources) {
              if (new File(resource.getDirectory()).exists()) {
                  return true;
              }
          }
          return false;
      }
docs: Check if any of the resources exist.
  
  @param resources The resources to check
  @return <code>true</code> if the resource directory exist