Almost there - added separate checkURL function