if [ $? -eq 1 ]; then would probably be even better. expr returns 1 if the result of expression is null or 0
if [ $? -eq 1 ]; then
would probably be even better.
expr returns 1 if the result of expression is null or 0