@staticmethod
def _verification_needed(cacert, insecure):
    """Return the verify parameter.

        The value of verify can be either True/False or a cacert.

        :param cacert None or path to CA cert file
        :param insecure truthy value to switch on SSL verification
        """
    if insecure is False or insecure is None:
        verify = cacert or True
    else:
        verify = False
    return verify
