Check if $_SERVER['CONTENT_TYPE'] isset()

Because it isn't always, and that causes an E_NOTICE error under E_ALL error_reporting.