Getting error when trying to get info fron api

I have this in my html code under java script

 if($NOMICS_COIN_IDS != ""){

                        foreach($decoded_json as $crypto) {

                            $COIN_ID = $crypto['id'];
                            $coin_name = $crypto['name'];
                            $logo_url = $crypto['logo_url'];
                            $coin_rank = $crypto['rank'];
                            $coin_price = $crypto['price'];
                            $coin_24h_change = $crypto['1d']['price_change_pct'];
                            $coin_7d_change = $crypto['7d']['price_change_pct'];
                            $coin_30d_change = $crypto['30d']['price_change_pct'];
                            $coin_1y_change = $crypto['365d']['price_change_pct'];

Getting this errors on them.

Notice : Undefined index: 7d in C:\Mylinks\Crypto\index.php on line 413

Notice : Trying to access array offset on value of type null in C:\Mylinks\Crypto\index.php on line 413

Notice : Undefined index: 30d in C:\Mylinks\Crypto\index.php on line 414

Notice : Trying to access array offset on value of type null in C:\Mylinks\Crypto\index.php on line 414

Notice : Undefined index: 365d in C:\Mylinks\Crypto\index.php on line 415

Notice : Trying to access array offset on value of type null in C:\Mylinks\Crypto\index.php on line 415

Notice : Undefined index: 1d in C:\Mylinks\Crypto\index.php on line 412

Notice : Trying to access array offset on value of type null in C:\Mylinks\Crypto\index.php on line 412

If an asset does not have volume during the interval it won’t have an interval object in the response. You should check that the interval is present before trying to index into it.