Saved pastes by ryanjbonnell:
1 2 3 4 5
<?php function is_array_empty( $mixed ) { if ( is_array($mixed) ) { foreach ($mixed as $value) {