Typescript If Array Not Empty