#2 Since conn can be nil so make sure that there is one connection set before continue