def has_category(server, category):
    """Return true if a server has category in categories."""
    for category_ in server['categories']:
        if category_['name'] == category:
            return True
    return False
