if [ -e foo ] && [ -e bar ]; then echo exists; fi