private function extractFieldLengthValue($properties) { foreach ($properties as $property) { if (is_numeric($property)) { return $property; } } return 0; }