this check is not needed.
mkdir -p does not create the directory if it already exists and it does not make any error message for it neither.