app/helpers.php
if (!function_exists('is_digit')) { /** * Deal with normal (and irritating) PHP behavior to determine if * a value is a non-float positive integer. * * @param mixed $value * * @return bool */ function is_digit($value) { return is_bool($value) ? false : ctype_digit(strval($value)); }}//