`is_numeric` allows too many things, like e.g. hexadecimal values. If you implement it, `ctype_digit` is more accurate.
```php
if (!ctype_digit((string) $explodeLimit)) {
```
However `ctype_digit` does not allow negative values:
```php
var_dump(ctype_digit('-1')); // false
```
Casting to `int` could also be an option, but I'm not sure that is the way to do this.