Determine the type of a PHP array