src/ArrayHelper.php
public static function IsSingleDepth( array $array ) : bool
   {

      if ( \count( $array ) < 1 )
      {
         return false;
      }

      foreach ( $array as $v )
      {
         if ( \is_array( $v ) && \count( $v ) > 0 )
         {
            return false;
         }
      }

      return true;

   }
public static function IsSingleDepth( array $array ) : bool
   {

      if ( \count( $array ) < 1 )
      {
         return false;
      }

      foreach ( $array as $v )
      {
         if ( \is_array( $v ) && \count( $v ) > 0 )
         {
            return false;
         }
      }

      return true;

   }
public static function IsSingleDepth ( array $ array ) : bool { if ( \ count ( $ array ) < 1 ) { return false ; } foreach ( $ array as $ v ) { if ( \ is_array ( $ v ) && \ count ( $ v ) > 0 ) { return false ; } } return true ; }
Returns if array has only a depth of 1 level.

@param  array $array The array to check
@return bool
Returns if array has only a depth of 1 level .