Remove generator from any()