added check for empty articles