remove $ from variable reference

I used the role, saw this, and wondered if there was an intentional reason for keeping the $?