I second @bradgignac. It seems cleaner to use `connection.networks.all`.