SyntaxFix
Write A Post
Hire A Developer
Questions
Another method would be to do it sooner. You can create a Boolean variable and set it to true once you load data to the array. so all you really need is a simple if statement of when you load data into the array.