Add helper to check if a process is running.