Added isValidURL under MiscUtils.java