ok, so to fix it simple code can be used:
```
#Filtering out all snapper subvolumes
new_part["subvolumes"] = part["subvolumes"].select { |s| s.start_with?(".snapshots") }
```
why not `part["subvolumes"] || []` because you already check it in if condition
as bonus it is 2 lines instead of four