Works on object arrays