fixed =! to !== which is the correct way of writing this.