e verificare che la prima $chiave non sia vuota?