Added method to check if namespace already exists