Validates if an hour is valid (0-23)
Returns true if the hour is valid, false otherwise
static bool isValidHour(int hour) { return hour >= 0 && hour <= 23; }