FIX: access headers safely

Credits: @dhruvbaldawa  :)