Detect if `process` is defined