zsh: Use an if block to prevent a non-zero exit code.