Move code into if block.