Js Check If Array Object In Python Definition