public static function rangeCheck($input, $high, $low, $o, $m)
    {
        # Test to make sure the incoming range is an integer value.
        if (is_integer($high) && is_integer($low) && is_integer($input)) {
            # Filter the input to ensure length validity.
            $filteredInput = filter_var($input, FILTER_VALIDATE_INT, [
                'options' => [
                    'min_range' => $low,
                    'max_range' => $high,
                ],
            ]);

            if (!$filteredInput) {
                throw new OutOfRangeException('Integer range for '.$m.' in '.$o.' is '.$low.' to '.$high);
            }
        } else {
            throw new InvalidTypeException(sprintf('Integer parameter expected for %s in %s', $m, $o));
        }

        return true;
    }