PHP - check if an array is multi dimensional or not
<?php return (count($array) !== count($array, COUNT_RECURSIVE)) ? true : false;