public function isValid() {
		if (is_resource($this->process)) {
			$status = proc_get_status($this->process);
			return $status['running'];
		} else {
			return false;
		}
	}
public function isValid() {
		if (is_resource($this->process)) {
			$status = proc_get_status($this->process);
			return $status['running'];
		} else {
			return false;
		}
	}
public function isValid ( ) { if ( is_resource ( $ this -> process ) ) { $ status = proc_get_status ( $ this -> process ) ; return $ status [ 'running' ] ; } else { return false ; } }
check if the connection is still active

@return bool
check if the connection is still active