Avoid calculating the number of elements if you only need to check for non-emptiness. Use `WaterBlocks[1] ~= nil` instead.

Calculating the number of elements in the table is a costly operation in Lua.