Slight refactor of the urlVerification method