this code have unaccepted amount of WTF.
If I read code correct that in fact return `@items`. What is reason to not use e.g. deep copy if you want to copy it?