Typescript If Array Is Not Empty In Python What Is The Result