'Returns true if current row contains tag.'

def has_tag(self, tag):

    if (tag == None):
        return False
    elif isinstance(tag, str):
        return (tag in self.tags)
    else:
        return bool(len((set(tag) & set(self.tags))))
