Simplified by allowing the same function to handle individual items or arrays of them.