public static function validateMax(IControl $control, $maximum) { return Validators::isInRange($control->getValue(), [NULL, $maximum]); }