Removing array; adding codeExists