Php Multidimensional Array Check If Key Exists Python