code: public static boolean containsURL(final URL[] urls, final URL url) {
          checkNotNull("urls", urls);
          checkNotNull("url", url);
          for (int i = 0; i < urls.length; i++) {
              final URL element = urls[i];
              final String elementStr = element.toExternalForm();
              final String urlStr = url.toExternalForm();
              if (elementStr.equals(urlStr)) {
                  return true;
              }
          }
          return false;
      }
docs: Checks if the array or URLs contains the given URL.
  
  @param urls
  Array of URLs - Cannot be <code>null</code>.
  @param url
  URL to find - Cannot be <code>null</code>.
  
  @return If the URL is in the array TRUE else FALSE.