What do you think about making this `if itemPath = @item.getPath?()` instead?