SyntaxFix
Write A Post
Hire A Developer
Questions
How about this ? checking for length of undefined array may throw exception.
if(image_array){ //array exists if(image_array.length){ //array has length greater than zero } }