'Takes a command array and scans it for ControlPersist and ControlPath
settings and returns two booleans indicating whether either was found.
This could be smarter, e.g. returning false if ControlPersist is \'no\',
but for now we do it simple way.'

@staticmethod
def _persistence_controls(b_command):

    controlpersist = False
    controlpath = False
    for b_arg in (a.lower() for a in b_command):
        if ('controlpersist' in b_arg):
            controlpersist = True
        elif ('controlpath' in b_arg):
            controlpath = True
    return (controlpersist, controlpath)
