'Helper method for prepare_server_https to find out if user
already has an active Listen statement for the port we need
:param list listens: List of listen variables
:param string port: Port in question'

def _has_port_already(self, listens, port):

    if (port in listens):
        return True
    for listen in listens:
        if (len(listen.split(':')) > 1):
            if (listen.split(':')[(-1)].split('    ')[0] == port):
                return True
