prevent when sub from modifying when conditions arrayref