Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is an array
<?php is_array(mixed $value): bool
<?php         $connection = $this->connectionProvider->provideConnection();

        $stat = $connection->stat($location);



        if ( ! is_array($stat)) {

            throw UnableToRetrieveMetadata::create($path, $type);

        }
<?php         $connection = $this->connectionProvider->provideConnection();

        $stat = $connection->stat($location);



        if ( ! is_array($stat)) {

            throw UnableToRetrieveMetadata::create($path, $type);

        }