I have a function that adds an object to an array, and when I want to check if this array list is empty, I have 2 different results.
First, I have this class where I want