Can you also rewrite this condition, it's getting too long. Maybe move this to a separate method ``getElementType($arrayType)``.