I actually don't need another if/else block inside. The else block will work in both cases. just trying to avoid creating another copy if I don't have to, since PhoenixConnection's constructor creates a wrapper anyways.