add protection against emtpy result objects