checking if a directory exists in bash

Shell
if [[ -d 'my/directory' ]] then
	echo "The directory exists"
fi

if [[ ! -d 'my/directory' ]] then
	echo "The directory does not exist"
fi
Source

Also in Shell: