Check pid