return empty array if $parentId<0
fixed utf8 issues, use english comments
simplified article/category id check