Is there a way to programmatically check if there are other connected peers?

@bravoy93 I added a reusable solution for creating initial content here. It might work better in your case than waiting for the provider to sync. Just make sure to heed the dire warnings.