How to check if a index in a table does not exist

This is pretty much my question.
ex:

local table1 = {{"player", 3425}, {object, 4446}

table1[1][2] <-- how do i check if that index isnt in the table
local table1 = {{"player", 3425}, {object, 4446}

if table[1] and table [1][2] then
      print(table1[1][2])
else
      print("Index doesn't exist")
end
1 Like