handle empty results in earliest and latest methods