I think this is the most straight forward way and it's state-of-the-art:
function is_multidimensional(array $array) { return count($array) !== count($array, COUNT_RECURSIVE); }