I'm not good at JavaScript. Should I have used != instead? I think I based this check on a different place in the code, that checked for this.