Returning an object would be the best practice and would give you a better overall software design. I would recommend doing that
But still, keep in mind that creating/returning an object will take more processing time. It could change something if you do this operation a LOT and in that case you might need to think about it...