def get_category_name(id_, categories):
    """
        Return category name
    """

    if id_ is None or id_ == '':
        return None

    item = categories[int(id_)]
    if item['active'] is True:
        return item['name']

    return None