Add check for headers

Add check for headers