|| exit acts as a failsafe mechanism to prevent any write operation unless the dir actually is created and exists rather than complicating things with an if [[ -e ]] statement.