How to check if there is at least one element in an array? (I want to verify if the array is not empty.)
Sorry for this silly question, I already spent too much time on Google... (Google only returns complex situations and solutions. It seems like my question is too simple.).
EDIT: Ok, but what will happen with an array like [,,[],,[],,,] ? For my purposes, it should be considered as empty.
EDIT 2: Sorry, guys, for the confusion! At first, I didn't even know exactly what I was looking for. Thank you all!