Modified the check to include https urls