Could you go ahead and try to activate the environment, and then use the exit status to create if necessary?
conda activate zqz status=$? if [ ! $status == "0" ]; then echo "need to create env" fi