public bool HasTicks(params int[] tickTypes) { if (tickData == null) { return(false); } var withPositiveValue = new Func <int, double, bool>((key, value) => value >= 0); return(tickData.HasTicks(withPositiveValue, tickTypes)); }