Check If 2d Array Is Empty Python Queue Get First Element