Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Finds whether a variable is null
<?php is_null(mixed $value): bool
<?php     protected function mapToFactory($key, $value = null): array

    {

        return [

            $key => is_null($value) ? $value : "'{$key}' => $value",

        ];

    }
<?php     protected function resolveModelPath(): string

    {

        $path = $this->option('path');

        if (!is_null($path)) {

            return base_path($path);

        }