Php Array Key Exists Function In R