Typescript Empty Array Length Jquery