Check If Array Not Empty Python Queue