class UrlUtils {

    public static boolean isValid(String url) {
        if (url == null || url.isEmpty()) return false;
        url = url.toLowerCase();
        return url.startsWith("http:") || url.startsWith("https:");
    }

}