/* Function checking the validity of an IRK. 
@detail An all-zero IRK is not valid. This function will check if a given IRK is valid. */
bool is_valid_irk(ble_gap_irk_t const *irk)
/* Function checking the validity of an IRK. 
@detail An all-zero IRK is not valid. This function will check if a given IRK is valid. */
bool is_valid_irk(ble_gap_irk_t const *irk)
{
    for (uint32_t i = 0; i < BLE_GAP_SEC_KEY_LEN; i++)
    {
        if (irk->irk[i] != 0)
        {
            return true;
        }
    }
    return false;
}