Fixing undefined offset 0 when there are no articles