Boolean function that validates html headers