Throw error when trying to initialize an element second time
Update conditional statement of detecting initialized element