Typescript If Array Is Not Empty In Python There Is No Restriction