Python Check If Array Element Is Not Attached