public function max($subject, $max) : bool
    {
        if (!is_int($max) && !is_float($max)) {
            throw new InvalidArgumentException('Arg max type[' . Utils::getType($max) . '] is not integer or float.');
        }
        if ($subject === null) {
            return false;
        }
        return $subject <= $max;
    }