cleanest way to skip a foreach if array is empty
71341
Invalid argument supplied for foreach()
576
How can I check for an empty/undefined/null string in JavaScript?
135685
Arguments to If[] are not evaluated
112728
What's the best way to get the last element of an array without deleting it?
112812
Empty an array in Java / processing
134025
How to check if an array value exists?
92897
Iterate two Lists or Arrays with one ForEach statement in C#
129160
How to create an array if an array does not exist yet?
96595
jQuery, AJAX, JSONP: how to actually send an array even if it's empty?
99241
Check if inputs are empty using jQuery
72833
C#: Use of unassigned local variable, using a foreach and if
129071
How can I break an outer loop with PHP?
101561
Passing an empty array as default value of an optional parameter
129740
Omit empty strings from serializeArray in javascript
17844
What's the best way to break from nested loops in JavaScript?
119202
How do I break multiple foreach loops?
27196
Most efficient way to append arrays in C#?