private function isNumber($value) { return (bool) preg_match('(^(?:\\d+\\.\\d+|[1-9]\\d*)$)D', $value); }