def check_tags(self, server=None, rule=None):
        valid_rule = True

        server_tags = server.get('tags', [])
        server_tags = [str(t) for t in server_tags]

        tags = rule.get('tags', [])
        tags = [str(t) for t in tags]

        # Check tags first
        if len(server_tags) > 0 and len(tags) > 0:
            valid_rule = set(tags).issubset(server_tags)

        return valid_rule