performance and compatibility

- compatibility with php < 5.5
- assigning to a var prevents repeatedly calling the config() method, which should slightly improve performance
Merge pull request #10 from misterbisson/bugfix

performance and compatibility