Access callback: Determines whether there are any aggregator categories.
TRUE if there is at least one category and the user has access to them; FALSE otherwise.
function _aggregator_has_categories() {
return user_access('access news feeds') && (bool) db_query_range('SELECT 1 FROM {aggregator_category}', 0, 1)
->fetchField();
}