Define id depending on existance of catalog