Function for checking if a workspace name exits.