WP-2272 Check if items has no files
WP-2231: Limit terms by depth.