Removed some default parameters in favor of kwargs syntax
Inverted some logic for header check