protected static function decode($string) { $data = is_file($string) || self::url_exists($string) ? self::file_get_contents($string) : $string; return (array) self::decode_data($data); }