Checks if the value at index is nil or if the index is invalid.
index
bool isNoneOrNil([int index = -1]) => lua_isnoneornil(L, index);