is_numeric() {
  # shellcheck disable=SC2249
  case ${1:-} in ( '' | *[!0-9]* ) return 1; esac
  return 0
}
