I'd recommend to use ``sub_category.startswith('/')``