Allows it to work on both vector and array items