Conditional vector wrapping