Validates that an integer is positive
static bool isPositiveInt(int? value) { return value != null && value > 0; }