handled the case of empty news table