static protected function isUrlSmallerThanUploadMaxSize( $url, $max ) {
		$response = wp_safe_remote_head(
			$url, [
				'redirection' => 2,
			]
		);
		$size = (int) wp_remote_retrieve_header( $response, 'Content-Length' );
		if ( empty( $size ) ) {
			return true; // Unable to verify, return true and hope for the best...
		}
		return ( $max >= $size );
	}