def METHOD_NAME(self, attribute, service=None):
    """list: Returns list of conf lines containing ``attribute`` and
    optional ``service`` if present.
    """
    return [conf for conf in self.data
            if attribute in conf.attribute and
            (not service or (service and service in conf.service))]