Quotes are needed in case the variable PID evaluates to the empty string.
Without quotes, you would get "if [ -z ]" and that is an error for '['.