ENH is_empty_category
MAINT pep8 and pylint