initialised headers array, added isset