Fixed the checkMinimum and checkMaximum to accept zero properly

If `minimum` or `maximum` is 0, the `if` check in `checkMinimum()` and `checkMaximum` will fail.