Use length property of this.watchIgnorePatterns for length variable instead of the array itself