Added `hasConnection` method to ConnectionResolver.