How about the following.

```sh
if ! ps -U "$USER" -o pid,ucomm | grep -q "${SSH_AGENT_PID} ssh-agent"; then
  eval "$(ssh-agent | sed '/^echo /d' | tee "$_ssh_agent_env")"
fi
```