Typescript Empty Array Length Jquery Validation