Is this meant to be outside the if/else block?