Realised that ->extend() worked with any object and not just arrays