Merge pull request #1 from deathowl/master

    Eliminate Fatal error: Call to a member function getHeader()/setHeader() on a non-object
PSR2 formatting
remove unneeded exception , which resulted in a fatal error