private boolean hasResources(List<Resource> resources) {
        for (Resource resource : resources) {
            if (new File(resource.getDirectory()).exists()) {
                return true;
            }
        }
        return false;
    }
private boolean hasResources(List<Resource> resources) {
        for (Resource resource : resources) {
            if (new File(resource.getDirectory()).exists()) {
                return true;
            }
        }
        return false;
    }
private boolean hasResources ( List < Resource > resources ) { for ( Resource resource : resources ) { if ( new File ( resource . getDirectory ( ) ) . exists ( ) ) { return true ; } } return false ; }
Check if any of the resources exist.

@param resources The resources to check
@return <code>true</code> if the resource directory exist
Check if any of the resources exist .