code: @Trivial
      private static boolean contains(String[] fileList, String fileName) {
          if (fileList != null) {
              for (String name : fileList) {
                  if (name.equals(fileName)) {
                      return true;
                  }
              }
          }
  
          return false;
      }
docs: Tell if a file name is present in an array of file names. Test
  file names using case sensitive {@link String#equals(Object)}.
  
  The parameter file names collection is expected to be obtained from
  a call to {@link File#list()}, which can return null.
  
  @param fileNames The file names to test against. The array may
  be null, but may not contain null elements.
  
  @param fileName The file name to test. May be null.
  
  @return True or false telling if the file name matches any of
  the file names. False if the file names array is null.