public static function loadPhp($file, $throwError = true): array
    {
        $ary = [];

        if (is_file($file)) {
            $ary = require $file;

            if (!\is_array($ary)) {
                $ary = [];
            }
        } elseif ($throwError) {
            throw new FileNotFoundException("php file [$file] not exists.");
        }

        return $ary;
    }