checking if process exists