Might want to add a console.error here for the else just in case