I think you'd want to raise an error here if filter is nil or just use find.