Wrap the result if it should be an array