- added safety for empty article database