added if statement and removed unnecessary comment (confirmGatePass.py)