Python Check If Array Contains An Element In A 2d