/* Function for checking if an address is non-zero. Used to determine if.  */
static bool peer_address_exists(uint8_t const *address)
/* Function for checking if an address is non-zero. Used to determine if.  */
static bool peer_address_exists(uint8_t const *address)
{
    uint32_t i;
    for (i = 0; i < BLE_GAP_ADDR_LEN; i++)
    {
        if (address[i] != 0)
        {
            return true;
        }
    }
    return false;
}