How to Check If Array Is Empty?

I don’t understand why this answer is so complex.

I’ve just called my inventory array and setup a branch asking if the length of the array is equal to 0. If it is, my inventory is empty.