Update Participant.php

Refactored three instances of assignments in if statements.