code: public static function isNumber($value = null)
      {
          $value = self::flattenSingleValue($value);
  
          if (is_string($value)) {
              return false;
          }
  
          return is_numeric($value);
      }
docs: IS_NUMBER.
  
  @param mixed $value Value to check
  
  @return bool