Might be neater to use something like "AppLayerProtoDetectionEnabled()".