Since the value should never be `nil`, I think you can move this code into the previous condition block.